On 5/18/06, Tony Watkins <[EMAIL PROTECTED]> wrote:

> Since ems is a measure of height for a given font, wouldn't percent or
> pixels be a better and more accurate measurement for both margins and
> width/height?

But you don't have a liquid layout if you use pixels .

A px is a fixed measurement, but only for a given screen resolution.
You have no way of knowing how much screen territory on your page is
occupied by a px on the user's screen.

If you use percentages you will know at least that the element will
take up x% of the screen space at whatever resolution.  The
relationship between the screen size and the width of elements will
remain constant as the user changes screen resolutions.

If you use ems you know that the relationship between text size and
the screen space use will stay the same if the user changes text size.

With pixels you don't know either and have less control, not more.

If you have a text heavy page it makes sense to size in relationship
to the text size and use em's or ex's.  With graphic heavy pages you
might want to use percentages.

-- 
Ed Seedhouse
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to