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
>id=tabs.ski

    That's not quite right.  To select the following:

    <div id="tabs.ski">...</div>

...you'd need to write the following selector:

    #tabs\.ski {...}

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 
capability here:

    http://meyerweb.com/eric/css/tests/class-id.html

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 
http://meyerweb.com/eric/thoughts/2005/08/29/reserved-id-values/), 
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/)
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
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/

Reply via email to