
Originally Posted by
jund
In the 'Cookbook' it is recommended to use em instead of px - primarily because px is relative to the resolution the customer is using - and we all know the customer is in charge of what they see (smile).
em is relative and works in most browsers... because it is a percentage value.
To be safe it is best to use em.
Note Goofy uses em.
Here is what my CSS looks like for the margins...
#navColumnOneWrapper, #navColumnTwoWrapper {
margin-left: 0.5em;
margin-right: 0.5em;
}
SUMMARY:
em covers the majority of browsers regardless of version - it is a way of managing 'padding' and it is in percentage instead of pixels. Pixels are 'fixed' controlled by the viewers's resolution - whereas percentage is 'proportional' regardless of the viewer's settings.
Experiment with it -
jund