W3C home > Mailing lists > Public > www-style@w3.org > November 2005

RE: [CSS21] Status of defult (intrinsic) style sheet in UA

From: Simon Pieters <zcorpan@hotmail.com>
Date: Tue, 22 Nov 2005 21:21:37 +0000
Message-ID: <BAY109-F116620C6B1C37DEE752624B4520@phx.gbl>
To: www-style@w3.org
Cc: news@terrainformatica.com

Hi,

>For example in the document above we have:
>
>ol ul, ul ol,
>ul ul, ol ol    { margin-top: 0; margin-bottom: 0 }
>
>But if we define in the document something like:
>ol { margin-top: 1pt; margin-bottom: 1pt }
>
>then it will override all instances of ol without
>respect of specificity of styles in default table.

The author style sheet has a higher weight than the UA stylesheet. See:

   http://www.w3.org/TR/CSS21/cascade.html#cascade

Regards,
Simon Pieters
Received on Wednesday, 23 November 2005 01:07:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:41 GMT