...

View Full Version : Font question



michael180
05-19-2005, 05:28 PM
In looking at many of the CSS page out there, I often see fonts called out this way font : 11px/15px georgia, serif; How does that work, I mean the two sizes?

Thanks,
Michael

mark87
05-19-2005, 05:32 PM
To my knowledge I didn't know you could do that, or see what the point of that would be...

You can set multiple font faces so that if the first isn't available, another is used etc.

Bill Posters
05-19-2005, 06:06 PM
In looking at many of the CSS page out there, I often see fonts called out this way font : 11px/15px georgia, serif; How does that work, I mean the two sizes?

This is based on the font attribute, which is the shorthand way of declaring a range of font related attributes in one go.

11px/15px simply means that the font-size should be 11px and the line-height should be 15px.

More info:
http://www.w3schools.com/css/css_reference.asp#font
http://www.sitepoint.com/article/introduction-css-shorthand
http://www.456bereastreet.com/archive/200502/efficient_css_with_shorthand_properties/

michael180
05-19-2005, 07:14 PM
Great, thank you Bill, and thanks for the links.

Michael



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum