W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2007

[whatwg] Default (informal) Style Sheet

From: Thomas Broyer <t.broyer@gmail.com>
Date: Mon, 2 Apr 2007 16:20:39 +0200
Message-ID: <a9699fd20704020720v78c86082l1e2e690bb1b8f0bf@mail.gmail.com>
2007/4/2, Asbj?rn Ulsberg:
> That translation already leads to a plethora of different results,
> CSS-wise. Is the whitespace around a <p> margin or padding?

According to <http://www.w3.org/TR/CSS2/sample.html> this is margin.

> What is the default style of <li> elements? Do they have outside or inside alignment?
> Padding or margin or both? What is their line-height?

Default values apply for list-style-image and list-style-position
(respectively 'none' and 'outside').
Default value ('disc') applies for list-style-type for LIs in ULs and
is 'decimal' for LIs in OLs.
OLs and ULs also have a 40px left margin and, when not nested within
each others 1.33em top and bottom margins.
Line height has its default value ('normal')

> Please see my example of <hr> as well, in my reply to Anne.


That's what the CSS spec says, not necessarily what browsers do ;-)

> Should the HTML or CSS specification then encourage HTML and CSS authors
> to use such a "zapper" to get expected visual results across browsers?

Why not, but such a "zapper" should then be given in the spec(s).

Thomas Broyer
Received on Monday, 2 April 2007 07:20:39 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:54 UTC