I moved a label ten pixels and the form made sense
I spent a good part of this afternoon glaring at a sign-up form. Nothing was wrong with it, exactly. Tidy fields, a nice typeface, a sensible button. And yet every time I looked at it my eyes slid off, the way they do with a tax return.
It was a practice piece, nobody’s but mine, so I had the luxury of being annoyed at it for as long as I liked.
The culprit turned out to be embarrassingly small. I’d set every label 16 pixels below the field above it and 16 pixels above its own field. Perfectly even. Very neat. And no use at all, because the word “Email” was floating exactly halfway between two boxes and belonged to neither. My eye had to stop and work out which box each word was talking to. Five labels, five tiny puzzles.
The ten-pixel fix
So I pulled each label down until it sat 6 pixels above its own field, and opened up the gap above it to 24. That’s all. Ten pixels of movement per label. No new colours, no borders, no clever anything.
The form snapped into five little pairs. Label and box, label and box. I said “oh” out loud, to an empty room and a cold coffee.
There’s a name for this, of course. Proximity, one of the Gestalt ideas, which is a grand German word attached to a plain observation: things that sit close together look like they belong together. Our eyes group first and read second. I learned that years ago, could recite it in my sleep, and still managed to park five labels at an equal distance from everything.
What I like about it is how cheap it is. When a layout feels muddled, my first instinct is always to add something. A line here, a tinted box there, a bolder heading. Lines are my weakness. I’ll happily draw a border round anything that stands still. But nine times out of ten the muddle is just things standing the wrong distance apart, and the fix is moving them, not decorating them.
My rough rule now is that the gap between groups should be at least twice the gap inside them. 6 and 24 is four times, which is generous, and the form looks calmer for it. At 12 and 16 it would still be mumbling.
The squint test, which makes me look odd
The way I check is not sophisticated. I push my chair back, squint until the words turn to grey fuzz, and count the lumps.
Before the fix, the form was one long grey smear. After it, five tidy lumps and a button. If the number of lumps matches the number of things I meant to say, I’m done. If it doesn’t, something is standing too close to a stranger.
I did the same squint at the error message afterwards, the little red line that says the email address looks wrong. I’d put it at the top of the form, where it read like a headline about somebody else’s problem. Tucked 4 pixels under the email field, it reads like a quiet word about that field. Same words, same red. Only the address changed.
It’s slightly humbling that the most useful thing I did all day was move some words a few millimetres. I’d like to say I’ll remember next time. I won’t. I’ll space everything evenly again, because even spacing feels like good manners, and then I’ll squint and sigh and fix it.
Note to self: before reaching for a border, try a bigger gap.
When a layout feels muddled, things are usually standing the wrong distance apart. Move them before you decorate them.