Claude Needham wrote:
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.

That is very rude. That's why some users set their browsers to use particular minimum-font-size settings. Which of course will mess up layouts done with px. (Especially if the pixel-obsessiveness extends to setting the dimensions of elements containing text.)

And you end up
disregarding the differences between OS and browsers.

And monitors and the "dot-per-inch" figure the OS is using for the monitor.

I was reading a news site earlier today at work, on a 17" LCD running at 1280x1024 pixels. Browser window was FF fullscreen - nothing but web page on the screen and a line of pixels across the top where the address bar was hidden. I had to increase the font size EIGHT TIMES before I could read their teeny little, low-contrast type.

--
David
gn...@hawaii.rr.com
authenticity, honesty, community
______________________________________________________________________
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/

Reply via email to