|
1 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
2 | 2 | <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 $ --> |
4 | 4 | <HEAD> |
5 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
6 | 6 | <TITLE>Assigning property values, Cascading, and Inheritance</TITLE> |
@@ -400,16 +400,17 @@ rules took precedence over user "!important" rules. </em> |
400 | 400 | class="propinst-background">'background'</span>) to be "!important" is |
401 | 401 | equivalent to declaring all of its sub-properties to be "!important". |
402 | 402 |
|
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 |
409 | 410 | 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 |
413 | 414 | function also within author style sheets. |
414 | 415 |
|
415 | 416 | <PRE> |
|
0 commit comments