Guides/Edit your website/Editor/Dimensions settings

Dimensions settings

Many blocks in the WordPress editor contain dimension settings to control the appearance of your content. This guide will show you how to use these settings.

Access the dimensions settings

Dimensions like block padding, margins, and spacing can be applied to the whole site, specific elements on your site, or to a single block of content.

To edit the style settings for your whole site, follow these steps:

  1. Visit your site’s dashboard.
  2. Go to Appearance → Editor.
  3. Select “Styles” from the left-side menu.

Learn more about editing your site’s styles.

To change the style settings for a single block, follow these steps:

  1. Visit your site’s dashboard.
  2. Navigate to the page, post, or template you want to edit.
  3. Select the block you want to apply the style.
  4. Locate the block settings sidebar.

In most cases, the style settings will be in the main block settings sidebar. Occasionally, you will see a separate tab for styles, represented by a black and white circle.

Block Settings sidebar with an arrow pointing to the Styles option.

View all settings

If you don’t see a particular setting, click the … or + icon to the right of Dimensions (as shown on the right.) You can then choose the option you want to access:

  • Padding
  • Margin
  • Block spacing
  • Minimum height

Note that not every block includes all these settings. The available dimensions settings will vary depending on the theme and the type of block.

Click each setting once, and a checkmark will appear next to it. You can then close the three dots menu to view the setting.

An arrow points to the three dots button next to dimensions, revealing clickable options for padding, margin, block spacing, and minimum height.

Padding and margin

The Padding setting affects the space around the block’s content, inside its borders.

The Margin setting affects the space outside the block’s borders.

Use the slider to increase or decrease the padding or margin around the block. For more granular control, you can set a specific value by clicking the slider icon as shown here (you can also choose the units used).

You can set different padding and margin values for the top, right, bottom, and left sides of the block. Click the unlink sides icon, represented by a chain link with a line through it, as shown here:

The Dimensions settings of a block's style settings sidebar, with padding and margins as options.

The margin field supports negative values with a - symbol.

Block spacing

Use block spacing to adjust the distance between any two blocks within blocks like columns, group, row, and stack. You can customize block spacing as described below:

The "Block Spacing" style option.
  1. Click the dotted lines to increase or decrease the spacing between your block items.
  2. Click on the settings icon to set a custom value for your block spacing and choose the units used.
  3. Click on the unlink sides icon to unlink your block spacing settings, so you can set different values for each side of the block.

Minimum height

Set a minimum height on blocks like cover, group, rows, and the Content block. This ensures the content will show in the maximum height you set, regardless of the viewer’s screen size.

Reset dimension settings

You can reset the customizations on the dimensions for the block and start over. To reset the styles:

  1. Click the Dimensions options (the three vertical dots to the right of the section header.)
  2. Uncheck an individual setting to reset the specific setting, or click “Reset all” to reset all the settings.

If there is no option to reset, there are no customizations to remove.

An arrow from the dimensions settings to boxes around the check box next to each setting and the "reset all" link.

Units

When using Dimensions settings, you can choose from the following units:

Was this guide helpful for you?

Not quite what you're looking for? Get Help!

Copied to clipboard!