# Layout and spacing

Change the default **width**, **margins**, and **padding** of sections and elements.

***

In the theme editor, click the **Layout and spacing** block under **Section Studio** • **Global styles**

<table data-header-hidden data-full-width="false"><thead><tr><th width="240.319580078125" valign="top"></th><th width="169.96435546875" valign="top"></th><th></th></tr></thead><tbody><tr><td valign="top"><mark style="color:blue;">Max page width</mark></td><td valign="top"><mark style="color:$info;">1000 - 1600px</mark></td><td>Applies to "page width" option in section settings. The effect of this option will be noticeable only when the window is wider than the max page width.</td></tr><tr><td valign="top"><mark style="color:blue;">Outer margins</mark></td><td valign="top"><mark style="color:$info;">8 - 200px</mark></td><td>Adds space on the left and right sides of sections. Outer margins appear only when the browser window with is smaller than the Max page width. Outer margins can help ensure section content is not cut off or overcrowded.</td></tr><tr><td valign="top"><mark style="color:blue;">Mobile outer margins</mark></td><td valign="top"><mark style="color:$info;">8 - 24px</mark></td><td>Adds space on the left and right sides of sections on mobile devices. Switch your theme editor preview to "mobile" to view changes.</td></tr><tr><td valign="top"><mark style="color:blue;">Base padding</mark></td><td valign="top"><mark style="color:$info;">4 - 16px</mark></td><td><p>Sets the basic unit of padding used when spacing elements in sections. Larger levels of padding will be multiplied by the base padding.</p><p></p><p>Does not apply to content area padding, grid spacing, card padding, button padding, or outer margins.</p></td></tr><tr><td valign="top"><mark style="color:blue;">Content area padding</mark></td><td valign="top"><mark style="color:$info;">4 - 80px</mark></td><td>Adds space around section content within its container</td></tr><tr><td valign="top"><mark style="color:blue;">Grid spacing</mark></td><td valign="top"><mark style="color:$info;">0 - 40px</mark></td><td>Adds space between items that appear in rows or columns. Grid items may include images, cards, or column content blocks.</td></tr><tr><td valign="top"><mark style="color:blue;">Card padding</mark></td><td valign="top"><mark style="color:$info;">4 - 40px</mark></td><td>Adds space around content inside a card. Cards may include product cards, images, grid items, blog post cards, etc.</td></tr><tr><td valign="top"><mark style="color:blue;">Padding scale ratio</mark></td><td valign="top"><mark style="color:$info;">100 - 200%</mark></td><td><p>Controls the amount elements are spaced out. This is calculated in combination with the base padding. Try adjusting both to see how space is adjust.</p><p></p><p>Does not apply to content area padding, grid spacing, card padding, button padding, or outer margins.</p></td></tr><tr><td valign="top"><mark style="color:blue;">Mobile padding scale</mark></td><td valign="top"><mark style="color:$info;">50 - 100%</mark></td><td>Controls the amount that padding reduces when viewed on mobile devices. Mobile padding is calculated by dividing the desktop padding by the selected percentage.</td></tr></tbody></table>
