CSS to position text based on Top of text?
Posted
by viatropos
on Stack Overflow
See other posts from Stack Overflow
or by viatropos
Published on 2010-05-22T20:38:09Z
Indexed on
2010/05/22
20:40 UTC
Read the original article
Hit count: 230
When I change the size of a font in CSS, how do I make it so no matter what size the font is (from 12px to 200px), that the "Cap Height" (pic) of the text will always 'visually' have 10px padding on top?
Otherwise what I'm doing is every time I change the font size, I have to go back and reposition the top/margin-top etc.
© Stack Overflow or respective owner