Skip to content

Design website spacing around content relationships

Summary

Use website spacing to connect headings, copy, and captions and distinguish sections. Check semantic structure, longer content, and spacing overrides.

Published

Decide which text and images belong together. Use distances that associate a heading with its explanation and a photograph with its caption, while marking a new topic. Spacing alone provides insufficient grounds for claims about luxury or trust.

Below a price table, distinguish supporting notes from the contact action. Choose spacing according to those relationships instead of increasing every gap equally.

Set distances according to the content relationship

Try closer spacing within an explanation and a larger gap between topics. Check the result with real copy after choosing the values.

Keep a photograph and its caption together

A caption closer to the following photograph can become ambiguous. Keep each image and caption in one group and use a separate gap between cases.

PairPurpose of the distance
Heading and copyIndicate what the heading describes
Image and captionIdentify the image being explained
Different sectionsMark a change of topic
FAQ and article navigationDistinguish answers from the next action

Design semantic structure alongside spacing

Use H2 and H3 headings as well as visual separation. W3C describes nesting headings according to content relationships. Blank lines and enlarged text alone leave that structure unavailable to heading-based navigation. (W3C page structure)

Preserve text and controls when spacing changes

Readers may adjust line height and character spacing. WCAG's text-spacing criterion requires content and functionality to remain available at its specified adjustments. It specifies compatibility with overrides, rather than identical default settings. Review a fixed-height panel if expanded text becomes clipped. (W3C text spacing)

Test narrow layouts and longer copy

Check multi-line headings, changed image proportions, and expanded FAQ answers. Move an isolated caption back into its image group. Adjust gaps or headings when a section boundary is ambiguous.

Review duplicated explanations and decoration before removing useful pricing or contact information to create room. See Font and text-display design for type settings.

SpreadSite is a no-code website builder that lets you create, publish, and update a website from Google Sheets using ready-made templates.

To build a website while checking spacing and content relationships, give SpreadSite a try!

Build a website with SpreadSite →

Frequently asked questions

Q: Is more spacing always better?

A: A large gap can separate an image from its caption. Compare within-topic and between-topic distances and adjust their relationships.

Q: Can spacing alone create a luxury appearance?

A: Photographs, wording, and typography also affect appearance. Use spacing to clarify relationships and section boundaries.

Q: Can I create gaps with repeated line breaks?

A: Use appropriate section and paragraph elements with spacing settings. Line-break appearance changes with width and text size.

Q: Must WCAG text-spacing values be the defaults?

A: The criterion concerns preserving content and functionality when readers apply its specified adjustments. It does not impose one default spacing design.

Sources

Build a website with Google Sheets using SpreadSite