Topic: The 'em' value is CSS? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=27210" title="Pages that link to Topic: The &amp;#039;em&amp;#039; value is CSS? (Page 1 of 1)" rel="nofollow" >Topic: The &#039;em&#039; value is CSS? <span class="small">(Page 1 of 1)</span>\

 
Skatefx
Bipolar (III) Inmate

From: Rochester, Ny
Insane since: Mar 2001

posted posted 12-23-2005 23:52

I have picked up a book in order to fully learn CSS. All is going well except one thing. I am having trouble understanding how the 'em' value works. I know its used favoribly over the other values and I would like to learn how to use it right. Can anyone explain for me?

+ Mike +

JKMabry
Maniac (V) Inmate

From: raht cheah
Insane since: Aug 2000

posted posted 12-24-2005 00:25

http://24ways.org/advent/an-explanation-of-ems

Wes
Paranoid (IV) Mad Scientist

From: Inside THE BOX
Insane since: May 2000

posted posted 12-24-2005 00:25

An em is the width of the capital letter M in a particular fontset. It's a relative measurement.

It's preferable when you consider the end user's ability to control his own viewing experience. For example, you set the size of your body text to 1em, your h3's to 1.5em, your h2's to 2em, etc. The user can increase or decrease the overall size of the text in his browser based on his comfort, but your text and headers will remain the same size relative to each other.

You can also apply em sizes to other elements on the page, such as navigation bars or columns, and their apparent sizes will increase and decrease relatively, as well.

Skatefx
Bipolar (III) Inmate

From: Rochester, Ny
Insane since: Mar 2001

posted posted 12-24-2005 00:28

Thanks alot guys!

+ Mike +

Wes
Paranoid (IV) Mad Scientist

From: Inside THE BOX
Insane since: May 2000

posted posted 12-24-2005 00:35

Oh sure, I go through all the trouble to explain it and Jason beats me by seconds with nothing but a link.



Edit: Stupid lowercase-p slimies ...

(Edited by Wes on 12-24-2005 00:36)

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 12-24-2005 00:39

Yeah, he's like that ( )



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu