Skip to content

Commit 2462345

Browse files
committed
[css2] updated cascading example
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401222
1 parent 72a6abc commit 2462345

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

css2/cascade.src

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: cascade.src,v 2.14 1998-03-16 14:57:09 howcome Exp $ -->
3+
<!-- $Id: cascade.src,v 2.15 1998-03-16 15:07:55 howcome Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Assigning property values, Cascading, and Inheritance</TITLE>
@@ -400,16 +400,17 @@ rules took precedence over user "!important" rules. </em>
400400
class="propinst-background">'background'</span>) to be "!important" is
401401
equivalent to declaring all of its sub-properties to be "!important".
402402

403-
<div class="example"><P>
404-
The first rule in the user's style sheet in the following example
405-
contains an "!important" declaration, which override
406-
the corresponding declaration in the authors's styles sheet.
407-
The second declaration will also win due to being marked
408-
"!important". However, the third rule in the user's style sheet will
403+
<div class="example">
404+
405+
<P> The first rule in the user's style sheet in the following example
406+
contains an "!important" declaration, which override the corresponding
407+
declaration in the authors's styles sheet. The second declaration
408+
will also win due to being marked "!important". However, the third
409+
rule in the user's style sheet is not "!important" and will therefore
409410
lose to the second rule in the author's style sheet (which happens to
410-
set style on a shorthand property). The third user rule will lose to
411-
the second author rule. Also, the third author rule will lose to the
412-
second author rule. This shows that "!important" declarations have a
411+
set style on a shorthand property). Also, the third author rule will
412+
lose to the second author rule since the second rule is
413+
"!important". This shows that "!important" declarations have a
413414
function also within author style sheets.
414415

415416
<PRE>

0 commit comments

Comments
 (0)