Sent by Tony Crockford on 1 December 2005 17:05
Kevin Cannon wrote:
> Hi,
>
> Is it possible ot use a rule with an ID and a class name in IE. e.g. like so:
>
> <div id="tabs" class="ski">...</div>
>
> #tabs.ski {
> background-color: green;
> }
>
> That works fine in Firefox, but in IE the first rule works, but subsequent
> ones don't:
>
> http://www.multiblah.com/exps/css/id_class.html
>
> On that page, #tabs.home doesn't work, but if I change it to #tabs.ski it'll
> work fine in all browsers.
>
> I'm at a bit of a loss, and so are the oher CSS afficiando's in here.
seems like I've been fixing a bug for so long I don't recognise valid
css when I see it.
Apparently there is *a bug* in IE that will ignore subsequent rules
set in the way you describe - #id.class{blah} and the fix is to drop
the #id
must have discovered that a long time ago and never used the syntax
combo again...
;o)
______________________________________________________________________
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/