BeginnerLesson 8 of 306 min read

Layout: Alignment, Spacing and White Space

Learn five habits of tidy layouts: margins, alignment, spacing, grouping and white space, and check a layout with a real program that finds the problems.

In this lesson you will

  • Keep margins and safe zones
  • Align items on shared edges
  • Use consistent spacing and grouping
  • Value white space

About 20 minutes

Everything is there, so why does it look messy?

Meera has a title, a photo, the details and a button. All the right pieces are on the page. And yet something is wrong, and she cannot say what. The title is a bit close to the edge. The details start a little to the right of the title. The photo is nearly touching the title. There is nothing wrong with any single piece. The problem is the way they are arranged. This lesson is about layout, and the good news is that layout comes down to a few simple habits that you can learn and even measure.

Five habits of tidy layouts

  • Margins. Keep a clear space between your content and the edge of the page. A common choice is roughly 5 to 10 per cent of the width. Things too close to the edge look cramped and may be cut off when printed or when a social site crops the post.
  • Alignment. Line things up on shared edges. If the title, details and button all start at the same distance from the left, the eye reads a clean line down the page.
  • Spacing. Use consistent gaps. If the gap between the title and the photo is large and the gap between the photo and the details is tiny, the page looks unplanned.
  • Grouping. Put related things close together and unrelated things further apart. Space itself says what belongs together.
  • White space. Empty space is not wasted. It gives the eye a place to rest and makes the important parts stand out.

White space, also called negative space, does not have to be white. It is simply the empty area around things. Beginners tend to fill every gap because empty areas feel like waste. Professionals leave them on purpose, because a crowded page makes the reader work hard and a calm page invites them in.

Measuring a layout

These habits sound like matters of taste, but several of them can be checked by numbers, which is useful when your eye has stopped being reliable after an hour of fiddling. The program below describes a layout as boxes with a position and a size. It then checks three things: whether any box breaks into the 90 pixel margin, whether any two boxes overlap, and whether the title, details and button share a left edge. We give it a messy layout and a tidy one, and the output is the real result.

W, H, MARGIN = 1080, 1350, 90

def lint(boxes):
    issues = []
    for n, (x, y, w, h) in boxes.items():
        if x < MARGIN or y < MARGIN or x + w > W - MARGIN or y + h > H - MARGIN:
            issues.append(f"{n}: inside the {MARGIN}px margin")
    names = list(boxes)
    for i in range(len(names)):
        for j in range(i + 1, len(names)):
            ax, ay, aw, ah = boxes[names[i]]
            bx, by, bw, bh = boxes[names[j]]
            if ax < bx + bw and bx < ax + aw and ay < by + bh and by < ay + ah:
                issues.append(f"{names[i]} overlaps {names[j]}")
    lefts = {boxes[n][0] for n in ("title", "details", "button")}
    if len(lefts) > 1:
        issues.append(f"left edges differ: {sorted(lefts)}")
    return issues

messy = {
    "title":   (70, 120, 940, 260),
    "photo":   (90, 360, 900, 520),
    "details": (96, 880, 880, 200),
    "button":  (102, 1130, 400, 100),
}
tidy = {
    "title":   (90, 90, 900, 260),
    "photo":   (90, 380, 900, 500),
    "details": (90, 910, 900, 160),
    "button":  (90, 1110, 400, 100),
}
for label, boxes in (("messy", messy), ("tidy", tidy)):
    found = lint(boxes)
    print(f"{label}: {len(found)} problem(s)")
    for f in found:
        print("  -", f)
messy: 3 problem(s)
  - title: inside the 90px margin
  - title overlaps photo
  - left edges differ: [70, 96, 102]
tidy: 0 problem(s)

The messy layout has three problems. The title box starts at 70 pixels, so it breaks the margin. It also runs down into the photo, and the three text boxes start at three different distances from the left: 70, 96 and 102. None of these gaps is dramatic, which is exactly why they are easy to miss and why a page can feel wrong without anything looking wrong. The tidy layout has none. Every box sits inside the margin, nothing overlaps and the three share one left edge at 90.

Notice what the tidy layout needed. Nothing fancy: the same left edge, a margin all round, and a small gap between neighbours. That is most of what tidy means.

Doing it in the editor

  1. Decide your margin and mark it. If your version of the editor offers rulers or guides, drag some in at the margin. If not, place a thin rectangle at the margin as a visual guide and delete it at the end.
  2. Place the biggest items first: the photo or the main shape. Then the title, then the details.
  3. Select items that should share an edge and use the align controls, rather than eyeballing it.
  4. Use the spacing or distribute option to make gaps equal.
  5. Zoom out to the size of a phone and look at the whole. Squint. Does the eye have a clear path from the title, to the details, to the call to action?

Many templates use a grid, an invisible set of columns and rows that things snap to. If the editor you are using has grid or position tools, use them. If a template feels balanced, notice how its items line up, because that is a free lesson.

Common mistake: horror vacui

Filling every empty space. When a page has room left over, the temptation is to add another icon, a bigger photo or more words. Stop. Ask whether the page is better with this addition or with the room. Often it is the room.

Safe zones

Different places crop and cover parts of a design. Social apps place buttons and names over parts of a story, and printers may trim the edges of paper. Keeping important content inside a margin protects it from both.

Look at a design you made in an earlier lesson. List the left edges of every text box and photo. If you see more than two or three different values, align them. Then increase the margin by a notch and see how the page breathes.

Practice for this lesson

Check what you learned

Five quick questions. Pick an answer and you will see straight away whether it is right and why.

Why keep a margin around your content?

  1. Margins are required by Canva
  2. Margins make files smaller
  3. They change colours
  4. Edges can be cropped and look cramped

Content near the edge looks tight and can be cut off when printed or cropped.

Why did the messy layout feel wrong without looking wrong?

  1. It used too many colours
  2. The edges were off by a few pixels
  3. The fonts were old
  4. The page was too small

Small differences in alignment are easy to miss but the eye still senses them.

What does grouping with space mean?

  1. Putting everything in a row
  2. Using one colour
  3. Adding borders everywhere
  4. Related things close, unrelated further apart

The distance between things tells the reader what belongs together.

What is white space?

  1. The empty area around things
  2. Only white backgrounds
  3. A kind of font
  4. A file type

White space is the empty room around items, and it need not be white.

Which tool helps lines share an edge exactly?

  1. Eyeballing it
  2. The colour picker
  3. The align controls
  4. The download button

Align controls place items on the same edge exactly, rather than approximately.

Summary

  • Keep a margin so nothing is cramped or cut off.
  • Align items on shared edges, using the align controls.
  • Space says what belongs together, so keep gaps consistent.
  • White space gives the eye a rest and makes key parts stand out.

Next lesson

Lesson 9 shows how to download and share your design in the right file type.

Questions

How big should my margin be?

A common choice is about 5 to 10 per cent of the width. For a 1080 pixel post that is roughly 54 to 108 pixels. Increase it if your design feels cramped.

Is empty space a waste on a small post?

No. Even on a small post, space helps the main message stand out. If everything is the same size and close together, nothing is noticed.

Does Canva have grids or guides?

Canva offers helpers such as rulers, guides and smart alignment lines, though the names and places can change. Use what your version shows, or place a thin box as a manual guide.

Progress is saved in this browser.