15
Jul
Jul
When I see this in CSS:
font:120%/130%
…what's the purpose of the '/' and the two different values? Is this something to do with compatibility between font sizes in Firefox and IE? (Maybe I've just answered my own question, but it's a guess and I'd like a definitive answer - possibly with some pointers to some reference, cos I can't find anything)
Thanks all!
Answer:
The slash is to differentiate between the size of the font (left of the /) and the height of the line (right of the /).
So 120%/130% indicates that the font must be 120% in size, and occupy a vertical space of 130%.
It's shorthand for:
font-size: 120%;
line-height: 130%;
Book Mark it-> del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Netscape | Yahoo | BlinkList
This entry was posted
on Tuesday, July 15th, 2008 at 5:55 am and is filed under Programming.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or TrackBack URI from your own site.