{"id":16709016,"date":"2023-05-04T01:55:05","date_gmt":"2023-05-04T01:55:05","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/inner-container-not-respecting-max-width-when-padding-applied\/"},"modified":"2023-05-04T01:55:05","modified_gmt":"2023-05-04T01:55:05","slug":"inner-container-not-respecting-max-width-when-padding-applied","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/inner-container-not-respecting-max-width-when-padding-applied\/","title":{"rendered":"Inner container not respecting max-width when padding applied"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">On the latest version of GB, I notice that inner containers stretch wider than the set max width of the inner container when padding to its sides is added.<br \/><br \/>Seems this is because the inner container isn&#8217;t using <code>box-sizing: border-box;<\/code> which I believe it did in the past.<br \/><br \/>I hacked around this by using a custom class, but it would be nice to have the inner container automatically respect the set max-width when it is explicitly set.<br \/><br \/>Maybe I&#8217;m just using it wrong?<br \/><br \/>Cheers!<\/p>\n","protected":false},"template":"","class_list":["post-16709016","topic","type-topic","status-publish","hentry","topic-tag-container","topic-tag-max-width","topic-tag-padding"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16709016","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16709016\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=16709016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}