Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-19-2005, 04:28 PM   PM User | #1
michael180
Regular Coder

 
Join Date: Apr 2005
Posts: 313
Thanks: 18
Thanked 2 Times in 2 Posts
michael180 is an unknown quantity at this point
Font question

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
michael180 is offline   Reply With Quote
Old 05-19-2005, 04:32 PM   PM User | #2
mark87
Senior Coder

 
Join Date: Dec 2004
Location: Essex, UK
Posts: 2,636
Thanks: 0
Thanked 0 Times in 0 Posts
mark87 is on a distinguished road
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.
mark87 is offline   Reply With Quote
Old 05-19-2005, 05:06 PM   PM User | #3
Bill Posters
Senior Coder

 
Join Date: Feb 2003
Posts: 1,665
Thanks: 0
Thanked 27 Times in 25 Posts
Bill Posters will become famous soon enough
Quote:
Originally Posted by michael180
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/int...-css-shorthand
http://www.456bereastreet.com/archiv...nd_properties/
Bill Posters is offline   Reply With Quote
Old 05-19-2005, 06:14 PM   PM User | #4
michael180
Regular Coder

 
Join Date: Apr 2005
Posts: 313
Thanks: 18
Thanked 2 Times in 2 Posts
michael180 is an unknown quantity at this point
Great, thank you Bill, and thanks for the links.

Michael
michael180 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:38 PM.


Advertisement
Log in to turn off these ads.