Limit width of page content

Hey there,
got a page with contents of various sizes in the footer too. now I need a way to limit the content in its width and set spacing to the sides of the browser window equally.

Thanks for your help

Hello @zerotoone.de,

Thanks for reaching out. :slight_smile:

Under Section > Row > Setup turn off Inner Container. Once disabled, you will be able to setup width and max width of the section as per your requirement. Here’s a screencast that you can take a look.

Thanks.

but I got different section some with multiple columns, what should I do in this case?

Hi @zerotoone.de,

That row setting applies to that current only regardless of the amount of the columns. But if the issue is having narrow columns, then maybe increase the size of the row.

Thanks!

so what values would you suggest for a responsive website, are there any common guidelines?

Hello @zerotoone.de,

You should set a width and maximum width if you have disabled the inner container.

  • width: 100%
  • max-width: 1200px

The maximum width will limit the width of the row especially in bigger screens.

Hope this helps.

thank you, can you recommend any websites that got guidelines on spacing etc?

Hey @zerotoone.de,

The spacing of the columns is basically 4% of the row width. If you do not want any spacing, you can enable the Marginless column option instead.

For element spacing, you can check out this knowledge base article:

Hope this helps.

what about spacing to the sides eg. browserwindow? are there knowledgebase articles on pro?

Hi There @zerotoone.de

Browser window is not controllable through CSS. You need to use custom JavaScript for that. You can see some of our predefined CSS classes from here (https://theme.co/apex/forum/t/customizations-css-class-index/207).

You can also see all of our knowledge base articles from here (https://theme.co/apex/forum/t/knowledge-base-overview/287).

Thanks!

I just want my content to look good, the spacing to the left and right should be equal in all sections and footer

Hi @zerotoone.de,

I could see you’ve added different paddings for each bar in footer:

Could you please try changing the padding to 0 to check if the spacings are the same?

Let us know how it goes!

okay I removed the padding, now I need the spacing around each bar to be the same as my content

Hi @zerotoone.de,

Would you mind providing us with a screenshot how your footers should be?

Currently, it looks like this:

Thank you.

Please visit the Page on mobile or smaller screens and you will see

Hello @zerotoone.de,

Currently, your content section is fullwidth and container is 88% width.
To do the same on footer, edit Bar set content width to 88% too:

Technically, that will make it aligned on the container. But if you expect the content images left and right part to be aligned on the edge of footer content, that will not happened right now. This is because the content row ialignment is set to center. Your images is center while the footer is just taking the full 88% width.

Hope this helps

thank you, works great

You’re welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.