| Previous Page | Table of Contents | Next Page |
Recipe 9.5 Keeping CSS Rules from Internet Explorer 5 for MacintoshProblemYou want to hide certain rules from Internet Explorer 5 for Macintosh. Solution*/: /* \*/
h1 {
font-size: 200%;
text-transform: uppercase;
background-color: #666;
}After the rules pertaining to Internet Explorer 5 for Macintosh, insert another comment line: /* */
p {
text-transform: uppercase;
}DiscussionThis method exploits a simple hidden, allowing entire rule sets to be hidden from the browser until the next closing comment marker is hidden. See AlsoThe specification about adding comments in CSS at http://www.w3.org/TR/2004/CR-CSS21-20040225/syndata.html#comments. |
| Previous Page | Table of Contents | Next Page |
| |||||||||||||||||||