q about em's

This is a discussion on "q about em's" within the Web Page Design section. This forum, and the thread "q about em's are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 30th, 2006, 10:55
Reputable Member
Join Date: Dec 2005
Location: scotland
Age: 27
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts
q about em's

in CSS is it wrong to write;

font: 2em ?

should it be

font : 2.em ?

I didn't think it made a diference but someone told me it was wrong. just wondering if anyone wishes to enlighten me, cheers
Reply With Quote

  #2 (permalink)  
Old May 30th, 2006, 12:15
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Re: q about em's

2em is correct.
Reply With Quote
  #3 (permalink)  
Old May 30th, 2006, 12:17
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to herkalees Send a message via MSN to herkalees Send a message via Yahoo to herkalees
Re: q about em's

They'll both be interpreted (sp?) as 2 em, or "two em's". With the decimal point, it's just like writing 2.0 em, which is also the same as above.
Reply With Quote
  #4 (permalink)  
Old May 31st, 2006, 21:10
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
Re: q about em's

I wouldn't put the decimal unless you have a number following it, that might confuse some browsers.
Reply With Quote
  #5 (permalink)  
Old Jun 2nd, 2006, 01:21
Reputable Member
Join Date: Jul 2005
Location: Indiana, USA
Age: 29
Posts: 153
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to jpmitchell Send a message via Skype™ to jpmitchell
Re: q about em's

I agree with Pheonix. Not only does it leave the change for browsers to be confused, if you go to update it and overlook a tiny decimal point a 1.25. may not render correctly either.
Last Blog Entry: Whats in a name? (Feb 20th, 2008)
Reply With Quote
Reply

Tags
ems

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 22:06.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43