HTML CSS Reference/CSS Attributes and Javascript Style Properties/ important

Материал из Web эксперт
Перейти к: навигация, поиск

"!important" Example

   <source lang="html4strict">
   

<html> <head> <style type="text/css"> p {

    font-size: 12pt !important; 
    font-style: italic 

} </style> </head> <body>

the style sheet.

</body> </html>


     </source>
   
  


"!important" is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Applied_To |<a> <address> | | | |

| |
<body> | | |
|

| | | | |<col> <colgroup> | | |

|

| |<dir>
| | |
| | | <form> | | |<hn> <html> | | | <img> | | |<input> <input type="button"> | | |<input type="checkbox"> <input type="file"> | | |<input type="hidden"> <input type="image"> | | |<inputtype="password"> <input type="radio"> | | |<input type="reset"> <inputtype="submit"> | | |<input type="text"> | | |<label> <legend> | | |
  • <listing> | | |<marquee> <menu> | | |

      | | |

                                                            |
      |                |                          <select>                      |
      |                |                                                 |
      |                |                                              |
      |                |                                                    |
      |                |                         <tbody>                       |
      |                |                          |
      |                |                                                       |
      |                |
        | | |<xmp> | +----------------+--------------------------------------------------------------+ </source>

        "!important" Syntax and Note

        <source lang="html4strict"> Note: Adds more importance to a declaration.


        </source>

      <textarea> | | |<tfoot> | | |<thead>