Rise Layouts logo Rise LayoutsDesign and layout, explained clearly
Layout Principles

Optical Alignment and Why Centered Text Looks Off

You centre a play icon inside a round button. The numbers are perfect, both margins identical to the decimal, and the triangle still looks like it is sliding out of the left side.

A round button with a play triangle shown twice, once centered by measurement and once shifted slightly right

You centre a play icon inside a round button. The numbers are perfect, both margins identical to the decimal, and the triangle still looks like it is sliding out of the left side. You nudge it two pixels right, the maths is now wrong, and it looks correct. That gap between the measurement and what the eye reports is the whole subject of optical alignment.

It shows up in the small decisions that make a page feel either deliberate or slightly sloppy without anyone being able to say why. A logo sitting low in its avatar circle, a quote mark pushing the first line of a pull quote inward, a bullet list that makes the left edge of the column look chewed. None of those are big mistakes. Together they are the difference between work that reads as considered and work that reads as assembled.

What optical alignment actually means

Every shape has two centres. The geometric centre is the middle of the box that contains it. The visual centre is where the mass of the shape feels concentrated. For a rectangle those two points are identical, which is why layout software defaults to the maths and why the maths usually works.

For anything asymmetrical they separate. A triangle pointing right has most of its area on the left, so when you centre the bounding box the shape appears to drift left. A capital letter A has a wide base and a point at the top. A speech bubble has a tail. A letter O extends slightly above the cap line and below the baseline, which typographers call overshoot, because a circle that stopped exactly at the line would look small next to the flat topped letters beside it.

Optical alignment means placing things by visual centre rather than bounding box. It is not a licence to move things around until you like them. It is a correction applied to a specific class of shapes, for a reason you can name out loud.

The five places the maths fails

These come up on nearly every project. The nudges are small, which is the point; if a correction is obvious when measured, something else is wrong.

ElementWhat the numbers doThe correction
Triangle or arrow in a round buttonCentres the bounding box, shape drifts leftShift toward the point by roughly 5 to 8 percent of the icon width, about 1 to 2 px at 24 px
Text inside a pill or buttonCentres by line box, including descender spaceLift the label 1 px so the cap height looks centred rather than the line box
Circle next to a square at the same sizeCircle reads smallerDraw the circle 2 to 4 percent larger so both feel equal
Opening quote mark at the start of a pull quoteSits inside the text column, breaking the left edgeHang it outside the column by about 0.4 em
Logo inside an avatar or card frameCentres the artwork file, including its empty marginCentre the visible mark, not the file, and crop the export tightly

Two of those have become so standard that the tools do them for you. Good icon sets ship with the optical shift already baked in, which is why a borrowed icon sometimes looks wrong next to one you drew yourself: one has been corrected and the other has not.

Why trust your eye is bad advice on its own

The usual line is that a designer's eye beats the numbers, so align optically and stop measuring. I would push back on that, and fairly hard, because it is the belief behind most of the inconsistent interfaces I am asked to clean up.

Your eye is working at 400 percent zoom on a large calibrated monitor. The person using the page is at 100 percent on a phone in daylight. A one pixel adjustment you can see at that zoom level may be invisible at real size, in which case you have added a value nobody can reproduce. Worse, you have added it to one instance. The next person builds the same button without the nudge and now you have two buttons that disagree by a pixel in a product with four hundred buttons.

So the rule I use is narrower. Correct by eye, then verify at 100 percent, then write the correction into the component rather than the instance. If you cannot see the difference at real size with the before and after side by side, revert it. And if a shape needs a nudge bigger than about 3 percent of its own width, the problem is the artwork, not the alignment.

This is the same discipline that holds the rest of composition together, as we argue in the principles that make any layout work: rules first, exceptions named and documented.

The optical left edge of a text column

Readers follow the left edge of a column down the page, and anything that interrupts it costs a little attention. Several common elements interrupt it by default.

  • Quote marks and dashes. Both are mostly air. Starting a line with one pushes the first real letter inward and leaves a notch in the edge. Hang them into the margin.
  • Bulleted lists. Indenting the bullet to the text edge leaves the text itself sitting further right than the paragraphs above it. Hang the bullet instead so the wrapped text lines up with the body copy.
  • Letters with sloped or round left sides. A capital A, W or O at display size appears to sit slightly right of a capital H. At 16 px nobody notices. At 64 px in a headline it is visible, and large type is where this correction earns its keep.
  • Numbers in a list. Right align the numerals so the full stops form a straight line and the item text starts in one place, which matters as soon as you pass item nine.

The quickest way to see all four at once is to drop a vertical guide down the left edge of the column and look at what touches it. The space either side of an element is doing more work than the element itself, a theme we return to in why negative space is doing more work than you think.

Icons and labels, centre or baseline

An icon beside a line of text can be aligned two ways and designers argue about which is correct. Centring the icon on the text box is tidy in theory and often looks low in practice, because the line box includes descender space the word may not use. Aligning the icon to the cap height usually looks better for small icons at 16 or 20 px.

My habit is to match the icon height to the cap height rather than the font size. An icon drawn at 16 px next to 16 px text reads as oversized, because the letters only occupy about 11 px of that. Draw it at 14 px, centre it on the cap, and the pairing settles.

For icons larger than the text, such as a 24 px mark next to a 14 px label in a card, centre on the whole line. The size difference is big enough that cap height alignment makes the icon look like it is falling.

How to check your own work

Four checks, in order, and they take about a minute each. Squint until the detail goes and watch where the weight sits. Flip the whole layout horizontally, since a composition that is badly balanced looks wrong immediately in mirror image. View at 100 percent on the smallest device you support. Last, print it, or at least look at it on a screen that is not the one you designed on, because a different gamma hides and reveals different things.

If all four agree, leave it alone. Reopening a layout to shave a pixel off something nobody has complained about is how a week disappears. More on the underlying rules in the layout principles section.

Frequently asked questions

What is the difference between optical and mathematical alignment?

Mathematical alignment positions the box that contains a shape. Optical alignment positions the shape's visual mass. They agree for rectangles and disagree for triangles, round forms, letters with sloped sides and anything with a tail.

How far should an icon be nudged?

Start at 1 px for a 24 px icon, which is roughly 5 percent of its width, and stop at 2 px. If it still looks off, redraw the icon on a tighter bounding box rather than moving it further.

Does optical alignment matter on small screens?

Less than most people think for body text, more than you would expect for icons and buttons, because those are the elements a thumb aims at. Corrections under one pixel are not worth making anywhere.

Should optical corrections live in the component?

Yes. Bake the shift into the icon artwork or the component definition so every instance inherits it. Nudging individual instances is how a design system drifts out of alignment with itself.

MV
Mara Vinter

Mara writes about the principles behind good layout, aimed at people who want their work to look intentional rather than accidental.

More posts by Mara

More in Layout Principles

01doorganico 084goad 3hot8 4465456 after5internprogram ahandfulofblessings ahmadpc ahomcybersecurity allodialresources annodex antiquesandperiodcollectibles aotc asianworldkashmir beedlectrics bloggertemplatefree bluefeatheragency bodyweightsolution campaign08blog carfixadvisor catstreetcollective cbstvsports cnfanspurchasing committeeof500yearsofdignityandresistance covertopsdjs cs-kaiyuangame cuestacomunicaciontotal cxoutlet dancebetgame deskgearhub destinyvillastay detectmagazine di33 diamondsteelbuildings donmo dyanadropship emarsysfinance emimattl escapechan eskitarih evautoplay everythingweddings-orlando farmzone feedviewerapp foxstudiosscratch gamevui123 gleasongrade greetingsday hacklabasu haskell iw-kaiyun jagoanproperti jilidskripsi joltbusinessfinance juegodepokergratis juegospucca kaeru-festival latestmehndidesigns lestanzediottaviano litemagazines localcommunityhero lustrsazan mariashebets menswheels newwebstechs1 nikkit ootheday oxigenvpn plurfitness prefetial probudgetcarpetcleaning psychicmrsmartin pyaten qvantor rejoignezlogis rexzbot ruchin rwxqsgd5 sakaltime shibiaowang shop-bot skrtips spotlesshaven strcoding tetapatrium topselller uneplanteartificielle vipertechcr webtech1223411 wo-kygaming yamaha-mekar yeknava yoybuysheets zenunwa yamaha-mekar jilidskripsi ankertoto ankertoto ankertoto