Spacer block (original) (raw)

If you want to have a space between two blocks, the spacer block is what you will use.
A vertical spacer adds space between blocks in a column (as in a page or post).
A horizontal spacer adds space between blocks in a row (as in a Navigation block).

(Note: Using a Navigation block requires a block theme or a theme that has support for template editing.)

In this video, you can see how you can use the spacer block and the different settings to modify it.

Demo of inserting Spacer block into post content and modifying its settings.

To add an spacer block, click on the Add Block icon.

You can also type /spacer and hit enter in a new paragraph block to add one quickly.

How to add a space block to a page or post

Add Spacer Block

In order to reveal the block toolbar, you can click on the block and the toolbar will display.

Every block comes with unique toolbar icons and blocks specific user controls that allow you to manipulate the block right in the editor.

The Spacer block shows four buttons in the block toolbar:

The spacer block toolbar

Spacer Block Toolbar

Transform to:

Transform options for Spacer Block

Transform options for Spacer Block

When you click on the “Transform” button, you can convert the Spacer block into Columns, Separator, Details, or Group blocks.

Drag icon:

Drag icon in the Spacer block

Drag icon in the Spacer block

To drag and drop the block to a new location on the page template, click and hold the rectangle of dots, then drag to the new location. The blue separator line indicates where the block will be placed. Release the left mouse button when you find the new location to place the block.

Move arrows:

Move arrows in the Spacer block

Move arrows in the Spacer block

The up and down arrow icons can be used to move a block up and down in your document.

Get more information about moving a block within the editor.

More options

These controls give you the option to copy, duplicate, and edit your block as HTML.

Read about these and other settings.

Block settings

Every block has specific options in the editor sidebar in addition to the options found in the block toolbar. If you do not see the sidebar, simply click the ‘cog’ icon next to the Publish button.

Spacer settings

The Height setting adjusts the height of the space. The Width setting adjusts the width of the space. You can adjust the settings by either:

You can also change the unit by clicking on PX to display a dropdown with the other supported units- PX, %, EM, REM, VW, and VH.

Spacer block settings, showing the supported units

The interactive resizable box and the sidebar preset controls used to tweaks the Spacer block.

When Spacer is a child of a flex layout block (Row, Stack, Navigation) custom size controls are removed and flex child controls added instead.

Fixed size control for Spacer block when it's a child of a flex layout block.

Fixed size flex control for Spacer block

Fill size control for Spacer block when it's a child of a flex layout block.

Fill size flex control for Spacer block

Dimensions

Theparagraph provides dimension settings options to add padding and margin. For details refer to this support article:

Dimension settings overview

Advanced

The “Advanced” tab lets you add HTML anchor and CSS class(es) to your block.

Advanced settings for the spacer block

The advanced section lets you add HTML anchor and a CSS class to your block.

“HTML anchor” allows you to make a unique web address for a particular “Shortcode” block. Then, you’ll be able to link directly to a “Shortcode” block of your page.

The “Additional CSS class(es)” lets you add CSS class(es) to your block, allowing you to write custom CSS and style the block as you see fit.