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.
|
|
|
|
|
![]() |
||
q about em's
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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 |
|
|
|
#2
|
||||
|
||||
|
Re: q about em's
2em is correct.
|
|
#3
|
||||
|
||||
|
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.
|
|
#4
|
|||
|
|||
|
Re: q about em's
I wouldn't put the decimal unless you have a number following it, that might confuse some browsers.
|
|
#5
|
|||
|
|||
|
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)
|
![]() |
| Tags |
| ems |
| Thread Tools | |
|
|