All other browsers (not IE6) are scaling the size of the whole layout in px. So what's the purpose to use em and % if we are not thinking about IE6?
views:
37answers:
3
+2
A:
Have you considered all major mobile device (eg, phone) browsers as well?
Dan McGrath
2010-01-25 04:55:12
so if we are not thinking about mobile phone then PX is no problem
metal-gear-solid
2010-01-25 05:40:27
+1
A:
If you specify font sizes by em, your codes will be more flexible and easier to maintain when you want to change the underlying font size later. Also, as Dan McG has said, not all browsers scale in pixels.
shinkou
2010-01-25 04:58:40
+1
A:
em and % help in making the dimensions independent of the device resolution by default
Even if all browsers did support scaling of whole layout as you describe, the user experience is not optimal if they have to scale the web page every time to suit their display's resolution.
HRJ
2010-01-25 05:23:46