Previous Message
Next Message

Re: [css-d] font size on body tag --- is this defeating theresizingability?

Sent by Caio Chassot on 23 January 2003 21:09


> body {
> font: 12px Verdana, Arial, Helvetica, sans-serif;
> margin: 0; padding: 0; background-color: #FFFFFF;
> color: black;
> position: relative;
> }

Notice that the color, background-color, margin & padding should be set
on both body and html.

> By specifying 12px as the font am I later defeating things when I say
I want
> it 1.5 em if someone wants to choose larger in there browser.  What is
the
> "best" way to specify this stuff.

In IE, user text size choice won't work.
Don't question about the best way, it always generates a massive useless
discussion about why pixels are evil | uber-cool.
That should probably point us to the fact that there's no "best" way.
Choose the one you like best. There are many options.

In your case, due to IE's limitation, a solution would be to provide a
js styleswitcher.
You might also try using relative sizes. Look for the info in
diveintoaccessibility.org

> And are the margins and colors redundant?

no, they're very good practice.

> I did position relative because I later have some positioning I need
to
> work.

i have bad experiences with positioning on body.
Previous Message
Next Message

Message thread: