{"id":4777,"date":"2026-03-31T20:13:18","date_gmt":"2026-03-31T19:13:18","guid":{"rendered":"https:\/\/ibex.tech\/wordpress-sites\/?p=4777"},"modified":"2026-04-16T09:58:53","modified_gmt":"2026-04-16T08:58:53","slug":"container-width","status":"publish","type":"post","link":"https:\/\/ibex.tech\/wordpress-sites\/page-builders\/elementor\/flex-boxes\/container-width","title":{"rendered":"Container width"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Set container width to match content<\/h4>\n\n\n\n<p>Advanced &gt; Custom CSS:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>selector {\n  width: fit-content;\n}<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Setting Width<\/h4>\n\n\n\n<p>\u201cBoxed\u201d only limits the width of the content. To change the width of the container, set it to full width.<\/p>\n\n\n\n<p>The first container you typically want to leave as \u201cboxed\u201d, so it is limited to the main page area.<\/p>\n\n\n\n<p>But for all containers within you typically want to select \u201cfull width\u201d instead, so that when you change the width value you are changing the container width itself, not an imaginary container within it.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Objects not obeying width setting, getting squished smaller or stretched bigger<\/h4>\n\n\n\n<p>Advanced &gt; Size &gt; Custom<\/p>\n\n\n\n<p>Set Flex Grow and Flex Shrink to 0<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Good width approaches when making an area thinner so it looks more punchy<\/h4>\n\n\n\n<p>Desktop \u2013 set in pixels<br>Tablet \u2013 often 80% is a good setting<br>Mobile \u2013 often 85-90% is a good setting<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Set container width to match content Advanced &gt; Custom CSS: Setting Width \u201cBoxed\u201d only limits the width of the content. To change the width of the container, set it to full width. The first container you typically want to leave as \u201cboxed\u201d, so it is limited to the main page area. But for all containers [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[383,381],"tags":[],"class_list":["post-4777","post","type-post","status-publish","format-standard","hentry","category-containers","category-flex-boxes"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/posts\/4777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/comments?post=4777"}],"version-history":[{"count":3,"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/posts\/4777\/revisions"}],"predecessor-version":[{"id":4786,"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/posts\/4777\/revisions\/4786"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/media?parent=4777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/categories?post=4777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/tags?post=4777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}