em | Articles | the bombsite

. . . . . . . . . . .

About the Post

Author Information

I enjoy working with HTML, XHTML, CSS and designers as a web developer. At home I enjoy listening to music, playing music, reading and food.

em

I’ve been a bit quiet here but I’m being kept busy by a friend of mine who is new to web design and wants to design a site of their own. I’m not allowed to help with the design which is a shame cuz it’s still simple and nice to “mess” with. Anyway my role is answering various questions about what this does and why that? Which is good cuz they are learning rather than copying. Then I was asked a question I just could not answer. I looked it up after and still don’t know the answer. The question??

“What is an em?”

In between lessons I’ve been reading up on a method of clearing absolutes so you can still have a footer. As many absolutes as you like apparently. I may put up a test site and see what I can come up with.

Comments ( 11 )

em is an emphasis or in plain language a multiple of the inherited font size. So .5em is half of what it would have been. Cool. So you can set one size in body and set the rest as multiples bigger or smaller
throughout the doc. Altering the initial value changes them all. HTH
5 August 2004, 03:32
Stuart
I understand all that but what is an em?
5 August 2004, 04:28
In CSS and em is a unit of measurment. It changes depending on the font size that is set in the browser. There is no set size of an em. The em unit and percentages are the only way of setting a size that will change when the viewer changes their browser text size if they are using Internet Explorer. Does that help?
5 August 2004, 11:14
Stuart
Welcome and thankyou. I rest my case.
5 August 2004, 17:51
Which reminds me I must fix mine.
5 August 2004, 23:14
Stuart
I had much the same idea. :hithead:
6 August 2004, 00:18
Lizz
Thank you everyone!!!! (I am the one who isn't letting Stuart play... instead, I get to!!!)
6 August 2004, 05:03
Stuart
Totally unfair. :wall:
6 August 2004, 06:17
Lizz
Yeah yeah, I know, you can play as much as you want btw, just don't SEND it to me. Cause I won't listen. :naughty: :snooty:
6 August 2004, 08:58
Obviously the CSS positioning needs a bit of er fine tuning. :)
11 August 2004, 02:33
Stuart
@Root - was that for me or eb? :pray:
11 August 2004, 03:21

Commenting is closed for this article.