Set container width to match content

Advanced > Custom CSS:

selector {
  width: fit-content;
}

Setting Width

“Boxed” 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 “boxed”, so it is limited to the main page area.

But for all containers within you typically want to select “full width” instead, so that when you change the width value you are changing the container width itself, not an imaginary container within it.

Objects not obeying width setting, getting squished smaller or stretched bigger

Advanced > Size > Custom

Set Flex Grow and Flex Shrink to 0

Good width approaches when making an area thinner so it looks more punchy

Desktop – set in pixels
Tablet – often 80% is a good setting
Mobile – often 85-90% is a good setting

USEFUL?
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through resources like this. We hope you find it helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support here. If you need help with a problem please use one of the many online forums.

Comments

Your email address will not be published. Required fields are marked *