Law of Proximity

Put things that belong together close together

Use space to group things. Put each label next to its field, and leave more space between groups than inside them.

This guideline comes from Law of Proximity. Read more about it on lawsofux.com.

In plain words: Things that sit close together look like they belong together. On a shop shelf, we read the price tag right under a product as that product's price.

The scenario: a shipping-address form at checkout. Both versions have the same fields and labels. Only the spacing changes. In the first version, notice how you cannot tell which label goes with which box.

Video, about 15 seconds, no sound: Law of Proximity, before and after. Before: Labels float between boxes. The shopper types in the wrong one. After: Each label sits right on its box. The shopper gets it right. Watch first: the problem, then the fix. Then try both versions yourself below.

Try it yourself

Switch between Before and After, then try each version.

What's wrong here? Each label sits exactly halfway between two boxes. Does “Postal code” name the box above it or the box below it? The eye cannot tell. The checkbox sits far from its own text. Shoppers type into the wrong boxes, then get error messages they do not understand.
shop.example.com/checkout/shipping

Shipping details

Apply this rule to your app

Support calls decrease

When each label sits right next to its field, people type the right thing in the right box, so fewer orders go to a wrong address.

Does your app have this problem?

I can look at your app's screens and show you which fixes bring the most value.

Email me

Your progress

Got it? Tick it off. Your progress stays in this browser.