Page layout basics: alignment, spacing and what to make biggest

Most pages that look untidy have good content and a few small layout faults: edges that almost line up, gaps that are almost equal, five things competing to be read first. You do not need a designer’s training to fix these. You need four habits, and a builder that helps you keep them.

1. Line things up

The eye notices a shared edge at once. When a heading, a paragraph and a button all start at the same left position, the page reads as one column, and the reader’s eye travels straight down it. When each starts a few pixels away from the others, the page looks accidental, even if nobody can say why.

2. Space things evenly, and use space to group

Space is how a page says what belongs together. Things that are close read as a group, and things that are far apart read as separate. Two rules follow.

Keep related things close. A heading should sit nearer to the paragraph it introduces than to the paragraph above it. A caption belongs right under its picture. A common fault is equal space everywhere, which leaves the reader to work out the groups alone.

Use a small set of gaps. Choose three or four sizes, each roughly double the last, such as 10, 20, 40 and 80 pixels: the small one inside a group, the middle ones between groups, the large one between sections. When every gap on the page is one of those four, the page looks deliberate. When gaps are 13, 22 and 37, it does not.

3. Decide what is read first

A visitor gives a page a few seconds before deciding whether to stay. In that time they should see one thing clearly: what this is. That is the job of hierarchy, which means making the important things look important.

4. Limit fonts and colours

Restraint is the cheapest way to look professional. Use one typeface, or two at most, in two or three sizes and two weights. For colour, choose a background, a text colour with strong contrast against it, and a single accent for buttons and links. Then use the accent only on things people can click, so that colour itself becomes a signal.

Check contrast with real text, not a guess: pale grey words on a white background are the most common reason a page is hard to read on a phone outdoors.

Doing this in SiteBuilder

SiteBuilder has a tool for each habit, all in the top bar or the panel:

HabitTool
Shared edgesSmart guides snap an element to the edges and centres of its neighbours and of the page as you drag
Even gapsSnap to grid, with a grid of 10, 20, 40 or 50 pixels, and Distribute evenly for a selected row or column
Tidying a groupSelect several elements, then Align left, centre, right, top, middle or bottom
Consistent type and colourStyle all selected sets the same colour, size or weight on everything you have selected
Exact positionsType X, Y, width and height in Properties

A practical way to use the grid: set it to 10 pixels, switch on Snap to grid, and every position and size you drag becomes a multiple of ten. Your gaps then come from the small set described above without any arithmetic.

A five-minute tidy-up

  1. Switch on the grid and look for edges that nearly line up. Make them line up.
  2. Select each row of similar items and distribute them evenly.
  3. Move every heading closer to the text it introduces.
  4. Squint. Enlarge the one thing that should lead, and shrink whatever competes with it.
  5. Count your colours and type sizes, and remove one of each.

None of these steps adds anything to the page. Layout improves mostly by removing small disagreements, and a page with fewer of them is easier to read on any screen.