CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 13th, 2004, 01:04 PM
Todd Prouty Todd Prouty is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: Chicago
Posts: 13 Todd Prouty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 29 sec
Reputation Power: 0
Documentation for font-size using slash

Does anyone know of a good source of documentation on notation such as the following?:

font-size: 10px/18px;


I haven't found anything in my usual sources. From trying it out, I believe the second value changes the line-height. However, I'd like to see how well-supported this notation is and if there is anything else one should know when using it. Thanks.

Reply With Quote
  #2  
Old July 13th, 2004, 01:18 PM
1beb's Avatar
1beb 1beb is offline
This tagline is not long enoug
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2003
Location: Toronto, ON Canada! I AM CANADIAN
Posts: 861 1beb User rank is Corporal (100 - 500 Reputation Level)1beb User rank is Corporal (100 - 500 Reputation Level)1beb User rank is Corporal (100 - 500 Reputation Level)1beb User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 h 32 m 12 sec
Reputation Power: 10
Send a message via ICQ to 1beb Send a message via AIM to 1beb Send a message via MSN to 1beb Send a message via Yahoo to 1beb
It sounds like you are refering to the font-size-adjust property... it is the ratio of font height to font size... as a numeric value. It is described in complete detail here:

http://www.w3.org/TR/REC-CSS2/fonts...ont-size-adjust

Reply With Quote
  #3  
Old July 13th, 2004, 01:19 PM
Akh's Avatar
Akh Akh is offline
|<.+#f@#+.&.|
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2002
Location: norway
Posts: 2,715 Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 17 h 42 m 44 sec
Reputation Power: 642
the best documentation is w3.org

there you can see from the css2.1 specs
http://www.w3.org/TR/CSS21/fonts.html#font-shorthand

this explaination of the font-shorthand:

Value: [ [ <'font-style'> || <'font-variant'> || <'font-weight'> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'> ] |

the value after the slash refeers to the line-height property

Reply With Quote
  #4  
Old July 13th, 2004, 01:21 PM
1beb's Avatar
1beb 1beb is offline
This tagline is not long enoug
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2003
Location: Toronto, ON Canada! I AM CANADIAN
Posts: 861 1beb User rank is Corporal (100 - 500 Reputation Level)1beb User rank is Corporal (100 - 500 Reputation Level)1beb User rank is Corporal (100 - 500 Reputation Level)1beb User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 h 32 m 12 sec
Reputation Power: 10
Send a message via ICQ to 1beb Send a message via AIM to 1beb Send a message via MSN to 1beb Send a message via Yahoo to 1beb
I saw that also, but I don't understand the difference between breaking them up with short hand, or bringing them together as an aspect ratio... a single value... wouldn't one value be shorter?

Reply With Quote
  #5  
Old July 13th, 2004, 02:41 PM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,674 kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 15 h 15 m 50 sec
Reputation Power: 687
Quote:
Originally Posted by 1beb
I saw that also, but I don't understand the difference between breaking them up with short hand, or bringing them together as an aspect ratio... a single value... wouldn't one value be shorter?

That's not an aspect ratio. The aspect ratio is loosely the ratio between the simple lower case height and the upper case height. The number can be used to calculate equivalent subjective font sizes. For example, a font with a 0.6 aspect ratio at 10pt will have about the same readability as a 0.5 aspect ratio font at 12pt.

Line height refers to the distance between the baselines of successive lines. See http://www.w3.org/TR/REC-CSS2/visud...def-line-height for the details.

As Akh referenced, the 12px/14px construct is simply shorthand for {font-size: 12px; line-height: 14px;}

Early on, I noticed that some browser (don't recall which—I should retest) didn't support the shorthand, so I usually specify line-height separately.

cheers,

gary
__________________
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.

My html and css workshop, demos and tutorials.
Ask a better question, get a better answer.

Reply With Quote
  #6  
Old July 19th, 2004, 04:47 PM
Todd Prouty Todd Prouty is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: Chicago
Posts: 13 Todd Prouty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 29 sec
Reputation Power: 0
Good info from all -- thanks. Sorry for the delayed reply.

Gary: Let me know if you ever figure out which browser that was.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Documentation for font-size using slash


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT