views:

37

answers:

3

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?

+2  A: 

Have you considered all major mobile device (eg, phone) browsers as well?

Dan McGrath
so if we are not thinking about mobile phone then PX is no problem
metal-gear-solid
+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
+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