Sub topic 2
Proximity: group related items
Proximity means placing related items close together and unrelated items farther apart. Readers see items that sit near each other as one group before they read a single word. This chapter assumes you know basic typography terms (typeface, size, weight, line spacing) and common layout elements such as headings, body text, images, and buttons. You can follow the examples in Figma, Canva, InDesign, or CSS.
What proximity does
The eye reads distance as meaning. If a heading sits close to the paragraph below it, the two look like one unit. If the same heading floats midway between two paragraphs, the reader cannot tell which one it introduces.
Proximity does three jobs:
- It shows which items belong together.
- It reduces the number of separate things the reader has to process.
- It sets up the visual hierarchy, because groups become the units the reader scans.
Compare two versions of an event flyer. In the first, the title, date, location, and ticket link are spaced evenly down the page. The reader sees four unrelated lines. In the second, the date and location sit together as one "when and where" block, and the ticket link has its own space below. The reader sees two groups and understands the structure at once.
The working model: distance within less than distance between
A simple rule makes proximity testable. The space between items inside a group must be clearly smaller than the space between groups.
If the two gaps are about equal, the groups disappear. If the gap inside a group is larger than the gap between groups, the reader will group the wrong items.
A useful starting ratio is that the gap between groups is at least twice the gap within a group. The code below uses 8px inside a card and 32px between cards, a ratio of 4 to 1.
.card {
display: grid;
gap: 8px;
padding: 24px;
max-width: 40ch;
}
.card h2 {
margin: 0;
font-size: 1.5rem;
font-weight: 700;
}
.card p {
margin: 0;
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
}
.card + .card {
margin-top: 32px;
}The gap: 8px rule controls space inside each card. The .card + .card rule controls space between cards. Resetting margin: 0 on the heading and paragraph keeps default browser margins from adding uneven space inside the group. The heading also differs from the body in size and weight, which is contrast, covered in a later chapter.
Worked example: fixing a contact block
Suppose a business card layout has this text, all spaced 20px apart:
Maya Okafor
Brand Designer
[email protected]
+44 20 7946 0000
Studio 4, Mill LaneThe reader cannot tell what is a name, what is a role, and what is a way to get in touch. Group by meaning:
- Identity: name and job title, spaced tightly (4px).
- Contact: email and phone, spaced tightly (4px).
- Location: the address, on its own.
- Between the three groups, use 20px or more.
Now the card reads as three clear blocks, even if you remove all labels. You did not add any decoration. You only changed distances.
Common errors
- Even spacing everywhere. When every gap is the same, nothing groups. Vary the gaps on purpose.
- Orphaned captions and labels. A caption closer to the next image than to its own image is read as belonging to the wrong one. Put the caption nearer to the item it describes.
- Headings floating in the middle. A heading needs more space above than below, so it attaches to the content that follows.
- Grouping by accident. Items that happen to sit close, such as a logo near a page number, appear related. Check what neighbors each element has.
- Using lines or boxes to fix what spacing could fix. Borders and background panels add visual noise. Try spacing first, then add a box only if the groups still need reinforcement.
Proximity and the other principles
Proximity works with alignment. Once items are grouped, aligning the groups to a shared edge makes the structure clearer. It also feeds repetition. If every card uses the same inside and between gaps, the groups look consistent across the whole layout. Both are covered in the following chapters.
Exercise
A product card has an image, a product name, a price, and a "Buy" button. Each is spaced 16px from the next. Describe how you would change the spacing to show that the name and price belong together and the button is a separate action, and give example values.
Show answer
Put the name and price close together, for example 4px apart, because they describe the same product. Keep the image grouped with them at a moderate gap such as 12px. Then put a larger gap, for example 24px or more, before the "Buy" button so it reads as a separate action. The gap between groups (24px) is clearly larger than the gap inside the name and price group (4px).
Exercise
A page has a section heading placed exactly halfway between the paragraph above it and the paragraph below it. What is the problem, and what is the fix?
Show answer
Equal distance on both sides means the heading does not clearly belong to either paragraph, so the reader cannot tell which text it introduces. Reduce the space between the heading and the paragraph below it, and increase the space above the heading, so the heading attaches to the content it introduces.