HighDots Forums  

css...what does em mean in this code here...

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss css...what does em mean in this code here... in the Macromedia Dreamweaver forum.

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

Default css...what does em mean in this code here... - 03-01-2006 , 10:42 PM






ul.navbar {
position: absolute;
top: 2em;
left: 1em;
width: 9em }

what is an em? i checked in the o'reilly reference but it said that browsers
italicize the text. but it positions the text in my style sheet, what is an em?
thanks, bryan




Reply With Quote
  #2  
Old   
.: Nadia :.
 
Posts: n/a

Default Re: css...what does em mean in this code here... - 03-01-2006 , 10:53 PM






ab 'em' is also used as a unit of meaure...
This explains it a little: http://css-discuss.incutio.com/?page=UsingEms
There are plenty of other links about this, but don't have access to them
right now.

--
Nadia
Adobe Community Expert
--------------------------------------------
http://www.csstemplates.com.au - CSS Templates | Free Templates
http://www.DreamweaverResources.com - Dropdown Menu Templates|Tutorials
http://www.macromedia.com/devnet/dreamweaver/css.html - CSS Tutorials
-------------------------------------------------



"mediastream13" <thewebwalker1 (AT) aol (DOT) com> wrote

Quote:
ul.navbar {
position: absolute;
top: 2em;
left: 1em;
width: 9em }

what is an em? i checked in the o'reilly reference but it said that
browsers
italicize the text. but it positions the text in my style sheet, what is
an em?
thanks, bryan




Reply With Quote
  #3  
Old   
mediastream13
 
Posts: n/a

Default Re: css...what does em mean in this code here... - 03-01-2006 , 11:16 PM



thanks! nadia, i'll read it. bryan =)

Reply With Quote
  #4  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: css...what does em mean in this code here... - 03-02-2006 , 07:26 AM



You are looking in the HTML reference.

Em is a typographic metric carried forward into the world of the web. It is
functionally equivalent to the height of the "m" character in the current
default character face, and at the current default character size. As such,
it is a relative unit of measure. Read the O'Reilly CSS reference for
"font-size".

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"mediastream13" <thewebwalker1 (AT) aol (DOT) com> wrote

Quote:
ul.navbar {
position: absolute;
top: 2em;
left: 1em;
width: 9em }

what is an em? i checked in the o'reilly reference but it said that
browsers
italicize the text. but it positions the text in my style sheet, what is
an em?
thanks, bryan




Reply With Quote
  #5  
Old   
joeq
 
Posts: n/a

Default Re: css...what does em mean in this code here... - 03-02-2006 , 07:33 AM



"Em is a typographic metric carried forward into the world of the web. It is
functionally equivalent to the height of the "m" character in the current
default character face, and at the current default character size."

so close... it's the width.


Reply With Quote
  #6  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: css...what does em mean in this code here... - 03-02-2006 , 07:42 AM



I actually typed width - something must be wrong with the keyboard! 8)

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"joeq" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
"Em is a typographic metric carried forward into the world of the web. It
is
functionally equivalent to the height of the "m" character in the current
default character face, and at the current default character size."

so close... it's the width.




Reply With Quote
  #7  
Old   
joeq
 
Posts: n/a

Default Re: css...what does em mean in this code here... - 03-02-2006 , 08:05 AM



yes ? i have the same faulty keyboard. it takes my perfect html and css and scrambles it all up when i hit 'save'!

Reply With Quote
  #8  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: css...what does em mean in this code here... - 03-02-2006 , 08:58 AM



Do you shop at the same store I do? 8)

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"joeq" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
yes ? i have the same faulty keyboard. it takes my perfect html and css
and scrambles it all up when i hit 'save'!



Reply With Quote
  #9  
Old   
Michael Fesser
 
Posts: n/a

Default Re: css...what does em mean in this code here... - 03-02-2006 , 12:12 PM



..oO(Murray *ACE*)

Quote:
Em is a typographic metric carried forward into the world of the web. It is
functionally equivalent to the height of the "m" character in the current
default character face, and at the current default character size.
In CSS it's just the font-size, nothing more.

Micha


Reply With Quote
  #10  
Old   
Tim G
 
Posts: n/a

Default Re: css...what does em mean in this code here... - 03-02-2006 , 02:05 PM







"Michael Fesser" <netizen (AT) gmx (DOT) de> wrote

Quote:
.oO(Murray *ACE*)

Em is a typographic metric carried forward into the world of the web. It
is
functionally equivalent to the height of the "m" character in the current
default character face, and at the current default character size.

In CSS it's just the font-size, nothing more.
Huh?




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 - 2014, Jelsoft Enterprises Ltd.