At 2:23 PM +0000 12/1/05, Tony Crockford wrote:
>this sounds a bit strange but why are you doing #tabs.ski which means
That's not quite right. To select the following:
....you'd need to write the following selector:
Without the backslash, it's a case of selecting an element like Kevin did:
<div id="tabs" class="ski">...</div>
Interestingly, IE/Win DOES allow you to select an ID-class combo, so
long as you keep things to one of each. So as Kevin discovered,
#tabs.ski does in fact work. You can see a more complex test of the
If you were to try something like #tabs.ski.help, then IE/Win would
ignore the "ski" part and select any element with an ID of "tabs" and
a class of "help", whether or not it had "ski" in its class value.
As for the original problem Kevin encountered:
>On that page, #tabs.home doesn't work...
Without having done any rigorous testing, my best guess is that
"home" is some kind of reserved word in IE/Win. It actually has a
few, despite the fact that CSS has absolutely no concept of reserved
words in class and ID names. I did some charting of this in the ID
space a while back (see
but never tested the class space.
Eric A. Meyer (http://meyerweb.com/eric/), List Chaperone
"CSS is much too interesting and elegant to be not taken seriously."
-- Martina Kosloff (http://mako4css.com/)
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/