Forum Moderators: not2easy

Message Too Old, No Replies

ems for margins?

pxs vs. ems

         

CWebguy

11:57 pm on Feb 14, 2009 (gmt 0)

10+ Year Member



For doing margins and paddings, should pxs. be used or ems? I always though that ems were for fonts specifically, but I have seen some designers using ems for margins and what not, which I always change back to pxs. Am I just old school, or should pxs be used here? what do you think? Thanks!

CWebguy

swa66

12:57 am on Feb 15, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



using an em means you scale everything off of the font size, which is a good thing if a visitor needs a zoomed view of it all.

It can be not so easy when you need an actually image as background or so, but in general em's should be more accessible and friendly to visitors.

CWebguy

2:33 am on Feb 15, 2009 (gmt 0)

10+ Year Member



So ems will change the whole page when font is enlarged/shrank by user? I have always been a stickler for keeping my design at set widths and pixels so I don't have to tear my hair out designing it :)