The Spacer Web Part is a built-in tool in SharePoint Online's modern page editor, designed to add customizable vertical and horizontal blank space between other web parts or sections on a page.
It's essentially an invisible element that acts as a "padding" or "margin" tool, allowing page authors to fine-tune layouts without relying on custom code, themes, or third-party extensions. It supports height adjustments ranging from a minimum of about 16 pixels to a maximum of 320 pixels, making it ideal for subtle tweaks or more dramatic separations.
Unlike more complex web parts (e.g., Text or Image), the Spacer is lightweight and doesn't contain any content—it's purely for spacing purposes. It's often used alongside the Divider Web Part (which adds horizontal lines) to create polished, professional-looking pages.
The Spacer Web Part is a built-in tool in SharePoint Online's modern page editor, designed to add customizable vertical (and sometimes horizontal) blank space between other web parts or sections on a page.
It's essentially an invisible element that acts as a "padding" or "margin" tool, allowing page authors to fine-tune layouts without relying on custom code, themes, or third-party extensions. This web part is available in SharePoint in Microsoft 365, SharePoint Server Subscription Edition, and SharePoint Server 2019. It supports height adjustments ranging from a minimum of about 16 pixels to a maximum of 320 pixels, making it ideal for subtle tweaks or more dramatic separations.
Unlike more complex web parts (e.g., Text or Image), the Spacer is lightweight and doesn't contain any content—it's purely for spacing purposes. It's often used alongside the Divider Web Part (which adds horizontal lines) to create polished, professional-looking pages.
Benefits of the Spacer Web Part
Spacer Web Part offers several advantages for SharePoint site designers and users:
- Enhanced Visual Layout and Alignment: It allows precise control over spacing, helping to align elements across columns or sections, which reduces visual clutter and makes pages more balanced. For example, it can prevent content from appearing cramped or unevenly distributed.
- Improved Readability and User Experience: By adding breathing room between sections, it guides the viewer's eye more naturally, making long pages easier to scan and reducing cognitive overload—especially useful for intranets, team sites, or public-facing pages.
- Simplicity and No-Code Approach: It's beginner-friendly, requiring no HTML/CSS knowledge, and integrates seamlessly with SharePoint's drag-and-drop editor. This democratizes page design for non-technical users.
- Flexibility in Responsive Design: While primarily vertical, it adapts to different screen sizes, helping maintain consistency on desktops, tablets, and mobiles without breaking layouts.
- Efficiency in Page Building: It minimizes the need for workarounds like empty Text web parts or section adjustments, speeding up editing workflows.
How to Use the Spacer Web Part - Adding and configuring the Spacer Web Part is straightforward.
Follow these steps:
- Enter Edit Mode: Navigate to your SharePoint page and click Edit in the top-right corner to open the modern page editor.
- Insert the Web Part:
- Hover your mouse over the + icon between existing web parts (or at the top/bottom of a section) where you want to add space.
- In the web part pane that appears, search for "Spacer" or scroll to find it under the "Layout" category.
- Click Spacer to add it.
- Adjust the Space:
- Once added, a gray handlebar will appear on the Spacer.
- Drag the bar up or down to increase/decrease the vertical height (or drag corner handles for horizontal adjustments if needed).
- For precise control, click the web part's settings gear icon (pencil) and enter a pixel value in the Height field (e.g., 50px for moderate space).
- Preview changes in real-time as you edit.
- Reposition or Duplicate (Optional):
- Drag the Spacer to move it.
- To duplicate for consistent spacing, right-click the web part and select Copy, then paste it elsewhere.
- Save and Publish: Click Save or Publish to make the changes live. The space will render invisibly but effectively on the published page.
Tips:
- Use multiple Spacers in a column for layered spacing.
- Combine with sections (e.g., 1-column or 3-column layouts) for advanced alignment.
- If you're centering content like Quick Links, pair it with column sections to avoid over-reliance on Spacers.
- Note: In rare cases, publishing might slightly alter spacing due to rendering—test on different devices.
This web part is a quick way to elevate your SharePoint pages from basic to professional.