Previous Message
Next Message

[css-d] Re: em vs. px vs. pt vs. %

Sent by Michael Collins on 6 February 2002 18:06


>On Wed, 6 Feb 2002, Michael Collins wrote:
>  > So is there a problem with setting an absolute font size for the
>>  major parent tags that enclose text, and then using the em relative
>  > sizes to fine tune font size?


At 4:21 PM -0500 2/6/02, Timothy J. Luoma wrote:
>If you sent a fixed px size for the overall page, and then use 'em' to
>adjust it, you really aren't doing much better than using fixed for all.


Well, at least I am getting relative to something.


>Why not leave the main body of the text as '1em' -- let the user define it
>-- and then make things smaller or larger relative to that.
>
>Why does it *have* to be 12px?


A starting point that looks good in the most prevalent browsers for 
my user group. BTW, I am not arguing 12px exactly, that was an 
example, it could be 14 or 16px as well.


>ps -- don't forget you can exert tighter control on your print.css if you
>are concerned about how it will look on printout.


That is a very good point and one I will heed.


At 10:08 PM +0000 2/6/02, Ben Nunn wrote:
>If have to use a liquid layout, it is likely that v.4 browsers will need to
>be supported, so fluid CSS is no-go.
>
>And if I don't, it's likely that absolute positioning will be required,
>therefore pixels are the way to go.


So I am hearing fairly convincing arguments for both sides. I guess 
it comes down to determining a target user/browser.


At 2:00 PM -0800 2/6/02, Matthias Gutfeldt wrote:
>But as far as the CSS specification goes: The 1.4em for h1 is
>relative to the 12px specified for the body element, and not relative
>to the user preference.


Are those dimensions (1.4em for h1 and 12px) actually in the CSS 
spec? I was shooting for a spec, just what was working on one page I 
had open at the time. I notice that with IE for the Mac it looks like 
12px at 96 dpi is the default, is that the case?

I do want it fluid so I may just go with em and allow the user or 
browser to determine the font size. The site is very simple in terms 
of graphics and changing the text size won't hurt too much with the 
layout as long as the relative aspect remains (except on the print 
page where I will use px).

Thanks all for the input.

-- 
Michael
__
||| Michael Collins       |||
||| Kuwago Web Services   |||      [EMAIL-REMOVED]
||| Seattle, WA, USA      |||      http://www.lassodev.com
Previous Message
Next Message

Message thread:

Possibly related: