Sent by Ingo Chao on 13 November 2005 11:11
Kerry Kobashi wrote:
> Is the use of classes and id together well supported in browsers today?
>
> Any thing to be aware of that will end up in gotchas later on through its
> use?
There are two possible gotchas in IE6.
Ingo
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>gotchas with class-class or id-class combination</title>
<style type="text/css">
#risk {background: green; display: block; padding: 1em;}
..low {color: blue}
..high {color: yellow}
#risk.low {background: maroon;}
#risk.high {background: red;}
..very.high {border: 5px dotted fuchsia;}
</style>
</head>
<body>
<p id="risk" class="high">This has a red background, and no border</p>
</body>
</html>
--
http://www.satzansatz.de/css.html
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/