Topic: The 'em' value is CSS? 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?" rel="nofollow" >Topic: The &#039;em&#039; value is CSS?\

 
Author Thread
Skatefx
Bipolar (III) Inmate

From: Rochester, Ny
Insane since: Mar 2001

IP logged posted posted 12-23-2005 23:52 Edit Quote

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

IP logged posted posted 12-24-2005 00:25 Edit Quote

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

Wes
Paranoid (IV) Mad Scientist

From: Inside THE BOX
Insane since: May 2000

IP logged posted posted 12-24-2005 00:25 Edit Quote

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

IP logged posted posted 12-24-2005 00:28 Edit Quote

Thanks alot guys!

+ Mike +

Wes
Paranoid (IV) Mad Scientist

From: Inside THE BOX
Insane since: May 2000

IP logged posted posted 12-24-2005 00:35 Edit Quote

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

IP logged posted posted 12-24-2005 00:39 Edit Quote

Yeah, he's like that ( )



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


« BackwardsOnwards »

Show Forum Drop Down Menu