Sent by Peter L. Schlueter on 18 June 2004 13:01
The sample start of a style sheet was something like this...
Html, body, div, table, h1, h2, h3, h4, h5, h6, p, form, img {
Margin: 0; border: 0; padding: 0; font-size: 100.1%}
This is supposed to give the developer a clean palette to begin with. I
have started employing this with no known problems to now.
Pete
-----Original Message-----
From: [EMAIL-REMOVED]
[EMAIL-REMOVED]]On Behalf Of Don Hinshaw
Sent: Thursday, June 17, 2004 4:49 PM
Cc: [EMAIL-REMOVED]
Subject: Re: [css-d] Default tag styles?
> MattH wrote:
>
>> Is there a list somewhere of what styles tags have by default? I'm
>> trying to find out where an margin (or padding is coming from) and it
>> would be easier to check a list like that instead of trying every value.
>
>
>
> Different browsers have different default styles for tags. For
> instance, IE and Moz put 8px margin on the body, Opera puts 8px padding.
>
>
Somebody recently posted a sample from the first line of their
stylesheet which, as I remember, essentially zeroed out the padding and
margin values for several tags including body, p and a few more. That
struck me as a sound approach as it allows you to only have a +/- value
where you explicitly add it.
Anybody else remember that?
DonH
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/