W3C home > Mailing lists > Public > public-html@w3.org > April 2007

Re: [whatwg] Default (informal) Style Sheet

From: Martin Atkins <mart@degeneration.co.uk>
Date: Sun, 01 Apr 2007 12:50:26 +0100
Message-ID: <460F9C82.3040104@degeneration.co.uk>
To: public-html@w3.org, WHAT WG <whatwg@lists.whatwg.org>

Kempen, E.J.F. van wrote:
> 
> What exactly are you looking for? Defining that 'normal' text is black by default and links are blue-ish? Because that's done already, most default styles are uniformly, but maybe informally, defined.
 >

One example that springs to mind is that the default CSS rules for 
unordered and ordered lists differ between browsers. Some implement the 
bullets with padding and list-style, while others use margins and 
god-knows-what. I can't really remember anymore. I've just learned that 
the way to get rid of the bullets across all popular browsers is:

ul, ul li {
margin: 0;
padding: 0;
list-style: none;
}

If you don't set both margin and padding, you'll see inconsistent results.

(Though perhaps this has been fixed in more recent times. I've been 
doing the above as an idiom for years.)
Received on Monday, 2 April 2007 13:52:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:15:52 GMT