Newbie question about cap height

jamis82's picture

Quick question from a newbie:

Say I have a button that's 50 px tall.

When vertically aligning text within a button what's the proper top and bottom padding?

distance from top button edge to Cap height = distance from bottom button edge to baseline?

Or does it make sense to add 1-2 pixels on the bottom since centered text appears lower?

Assume a 37px tall button with 12px Arial.

or should some other measure be used to vertically center it?

eliason's picture

This kind of thing is probably best judged by eye. One variable would be whether the text is all caps or includes lowercase.

Bendy's picture

I usually put things in the optical centre, which is as you say, slightly above the geometric centre. Judge by eye.

Syndicate content Syndicate content