Hey Glen,
div.foo.bar {} works perfectly in IE6, IE7, and FF.
Beware of this CSS syntax does in IE6 (I'm not referring to the
jQuery selector of course; just the pure css selector). I've had
quite a few problems with it in the past.
I started putting together a test page to show you some issues with
it, but then I read the comments to Ben Nadel's post, and someone
linked to Eric Meyer's test page, so I'll just link to that one, too:
http://meyerweb.com/eric/css/tests/multiclass.html
Look at the same page in both Firefox (which gets it right) and IE6
(which doesn't).
Assigning multiple classes to elements works great. It's just
referring to multiple classes to apply styles that doesn't (in IE).
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On May 4, 2007, at 1:47 PM, Glen Lipka wrote:
On 5/4/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
valid means passes the validater. it won't
works means .... works ... id'ing the html is weird, but should
work in most browsers
$("div.foo.bar") might look good but I don't think it works. <--
This works! :)
$("div.foo").filter(".bar") would be my choice to do an and.
$("div.bar",".foo") might get you there too.
div.foo.bar {} works perfectly in IE6, IE7, and FF.
Holy Cow! Basic regular CSS. How did I not know this? How have I
gone so long and not known this?
This is HUGE. I have spent so many hours working around this
problem. My god. I am doofus!
WOW! I can't get over how big a deal this is. I just asked a
bunch of friends. They had no idea either.
You guys rock.
Glen