On Wed, Oct 20, 2010 at 5:04 PM, Corona Rivera <corona.riv...@johnmuirhealth.com> wrote: > Would someone please explain why EM is usually used for the width property > instead of Pixels? > > I'm inclined to use pixels since that's the monitor's unit of measurement but > Adobe and most CSS examples I see use the M. - How come? > > Thanks, > Corona
I use em on font-size so that I can more easily respect allow users to alter the font setting in their browsers and have the page expand or contract in relationship. I suppose % could be used throughout. I just got used to em because so many of the designers I respect used em. The use of px on a font-size sets it in absolute terms. Meaning you end up disregarding the preferences of the user. And you end up disregarding the differences between OS and browsers. I use em on images and divs whenever I can so that my whole layout with breath with changing font-size. If you use px on images and em on font, then if the user increases the size of the font the images will become smaller in relationship. Conversely if they make the font size (in their browser settings) smaller then the images will be larger in relationship. That's my two cents. Hope it is of some help. Regards, Claude Needham ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/