Sent by Lachlan Hunt on 6 September 2004 01:01
Big John wrote:
> I just did some tests in connection with an article
> I'm writing, and I discovered a disturbing thing.
>
> I made a simple div box, and tried placing paragraphs,
> headings, and lists inside, to see what those famous
> semantic element "default margins" really are.
> ...
> Questions:
>
> Are default vertical margins specified anywhere,
> and if so, where?
Yes, in Appendix A of the CSS2 spec [1]. It's only informative, so it
is only a guideline, thus browsers don't need to conform to it fully
(and indeed, no browser I know of does). It does, however, specify this
rule that sets the top and bottom margins of various elements, including
<p>.
H4, P,
BLOCKQUOTE, UL,
FIELDSET, FORM,
OL, DL, DIR,
MENU { margin: 1.33em 0 }
There are several other rules in there for different elements, this is
just the one that sets it for the elements you mentioned.
[1] http://www.w3.org/TR/REC-CSS2/sample.html
--
Lachlan Hunt
[EMAIL-REMOVED]
http://www.lachy.id.au/
______________________________________________________________________
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/