HighDots Forums  

Calculating line height

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Calculating line height in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Paevo Kelley
 
Posts: n/a

Default Calculating line height - 05-28-2008 , 10:20 AM






Usually I specify a line height based on 120% or so, just as I would in
publishing distinguish between, say, an 11 point font and 13 point line height
leading. However, I am perplexed as to how the browsers do this by default. It
is more than 100% yet less than 120%. Does anyone know about this? Is it safer
to leave the setting at default? I have got a tight layout...


Reply With Quote
  #2  
Old   
Randy Edmunds
 
Posts: n/a

Default Re: Calculating line height - 06-04-2008 , 03:29 PM






Paevo,

Quote:
Usually I specify a line height based on 120% or so, just as I would in
publishing distinguish between, say, an 11 point font and 13 point line height
leading. However, I am perplexed as to how the browsers do this by default. It
is more than 100% yet less than 120%. Does anyone know about this? Is it safer
to leave the setting at default? I have got a tight layout...
The CSS2.1 recommends that user agents (e.g. browsers) use "a used value
for 'normal' between 1.0 to 1.2" (where 1.0 means 100%, and 1.2 means
120%), so there is some room for interpretation:

http://www.w3.org/TR/CSS21/visudet.h...ef-line-height

If you want to try to get your layout more consistent between browsers,
so you can really tighten things up, then try using a "reset" stylesheet:

http://meyerweb.com/eric/thoughts/20...eset-reloaded/

On an unrelated note, you should use a relative a font size like 'em'
instead of fixed point sizes so users can adjust the size to their own
screen resolution and eyesight.

HTH,
Randy


Reply With Quote
  #3  
Old   
Randy Edmunds
 
Posts: n/a

Default Re: Calculating line height - 06-04-2008 , 03:29 PM



Paevo,

Quote:
Usually I specify a line height based on 120% or so, just as I would in
publishing distinguish between, say, an 11 point font and 13 point line height
leading. However, I am perplexed as to how the browsers do this by default. It
is more than 100% yet less than 120%. Does anyone know about this? Is it safer
to leave the setting at default? I have got a tight layout...
The CSS2.1 recommends that user agents (e.g. browsers) use "a used value
for 'normal' between 1.0 to 1.2" (where 1.0 means 100%, and 1.2 means
120%), so there is some room for interpretation:

http://www.w3.org/TR/CSS21/visudet.h...ef-line-height

If you want to try to get your layout more consistent between browsers,
so you can really tighten things up, then try using a "reset" stylesheet:

http://meyerweb.com/eric/thoughts/20...eset-reloaded/

On an unrelated note, you should use a relative a font size like 'em'
instead of fixed point sizes so users can adjust the size to their own
screen resolution and eyesight.

HTH,
Randy


Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.