# Good Layout Rules: Group, Rank, and Space Your Screen

> Five simple layout rules help people find what matters on a screen, see what belongs together, and act with less effort.

**In short:** Good layout rules help people find what matters on a screen: group related items, show what matters most, use white space, design for scanning and line things up.

From "UI/UX basics", a free course by Venkat R. Murty: https://designervenkat.online/learn/ui-ux/good-layout-rules

## What you will learn

Layout is the way items are placed and sized on a screen. A good layout tells people what belongs together, where to look first, and what to do next. In this lesson you will learn five rules: group related items, show what matters most, use empty space on purpose, design for quick scanning, and line things up.

- **Layout:** The place, size, and order of every item on a screen.
- **Proximity:** The way people see items that sit close together as one group. Items far apart look separate.
- **Gestalt principles:** Rules about how people group what they see. Psychologists found them in the first half of the 1900s.
- **Visual hierarchy:** An order of importance shown on screen, so the eye reaches the key item first, then the next one.
- **White space:** The empty area around items. It does not have to be white.
- **Scanning:** A fast look over a page for key words and headings, instead of reading every line.
- **Alignment:** Items that share the same edge or line, such as a left edge for all text.

## Rule 1: Group related items

Put things that belong together close to each other. Put unrelated things farther apart. People read distance as meaning. Proximity is one of the strongest grouping cues, and it can beat a matching colour or shape.

Use space to show groups. Keep small, steady gaps inside a group, such as a label and its input box. Use larger gaps between groups.

> **Tip:** Check each label. It should sit closer to its own field than to the field above or below it.

### When should you add a box?

Sometimes spacing is not enough. Then you can draw a border or place a background behind a group. A boundary is a strong cue and can override closeness. Use boxes with care, because too many lines make a screen busy.

## Rule 2: Show what matters most

A clear visual hierarchy guides the eye through items in order of importance. You can build that order with size, contrast, colour, and spacing.

- **Size:** Bigger items get noticed first. Make the main message the largest item, and keep only a couple of big items on one screen.
- **Contrast:** Bold type or strong colour stands out from the background. If everything is bold, nothing stands out.
- **Placement:** Where an item sits on the screen also signals how important it is.

### How do you check the order with a grey test?

1. **Look for a few seconds:** Do not study it. Just look, as a new user would.
2. **Ask a question:** Can you still tell what matters most and what comes next?

If the order still reads clearly, the hierarchy is probably working.

## Rule 3: Use white space on purpose

White space separates one group of items from another. A layout with equal items and no breathing room is hard to parse. When possible, use spacing alone to form groups, because it keeps the screen simpler than borders do.

### Why give key items room?

Extra space around an item sets it apart as its own group. So give your most important item the most room.

## Rule 4: Design for scanning

Most people do not read a web page word by word. In a 2006 eye-tracking study of 232 users, people often read in an F-shaped pattern: two horizontal sweeps across the top, then a sweep down the left side.

The F shape is a warning sign, not a target. Designers should not build pages around it. A page with clear order gives people a path, so they do not need to hunt.

1. **Put the main point first:** Place the key message near the top left, where scanning starts.
2. **Use clear headings:** Each heading should say what the part below is about.
3. **Start paragraphs strongly:** Open each paragraph with the most useful words, since many people read only the start.

## Rule 5: Line things up

Alignment means items share an edge or a line. Aligned items look tidy and are easy to compare.

## Common mistakes

- **Everything looks equal:** When every item has the same size, colour, and spacing, the eye has no order to follow.
- **Unrelated items clumped:** A minor button placed among main buttons can be missed, because people judge the whole group by one item.
- **Too many boxes:** Borders around every item add clutter. Use them only when spacing cannot show the group.

## Quick check

**Quick check:** A checkout form has 12 fields in one block with no gaps. Which layout is easiest to scan?

A. Keep all 12 fields in one block with no gaps
B. Split the fields into three meaningful groups of four, each with a clear heading
C. Make all the labels light grey so the form looks quieter

**Answer:** B. Groups of related fields are easier to scan. Twelve fields in one block look more daunting, but three groups of four look simple. The groups must be meaningful, such as shipping and billing.

## Key takeaways

Group related items with proximity. Rank items with size, contrast, and placement. Use white space to give key items room. Design for scanning by putting the main point first. Line things up on shared edges. Check your work with a grey test, and remove any box that spacing can replace.

## Sources

- [NN/G: Visual Hierarchy in UX: Definition](https://www.nngroup.com/articles/visual-hierarchy-ux-definition/)
- [NN/G: Proximity Principle in Visual Design](https://www.nngroup.com/articles/gestalt-proximity/)
- [NN/G: The Principle of Common Region](https://www.nngroup.com/articles/common-region/)
- [NN/G: 5 Principles of Visual Design in UX](https://www.nngroup.com/articles/principles-visual-design/)
- [NN/G: F-Shaped Pattern For Reading Web Content (original study)](https://www.nngroup.com/articles/f-shaped-pattern-reading-web-content-discovered/)
- [Art of Style: Visual Hierarchy in UI Design (blog)](https://artofstyleframe.com/blog/visual-hierarchy-ui-design-principles/)
