Woops. Sorry for messing up my text in my last mail. That came out wrong.

What I intended to say; I'm suggesting to be careful with using:
.button.cancel { .. }
It's very close to:
.button .cancel { .. }
which does a totally different matching.

A multiple selection like this also has issues in IE6.

Trygve


On Fri, February 11, 2011 1:57 pm, Trygve Lie wrote:
> Hi
>
>> Also, I think it's pretty much accepted to use dashes in CSS (rather
>> than
>> underscores or camel case).
>
> I would not use that. Dashes has a function in CSS.
>
> The following will select a element with both "foo" and "bar" as class
> names:
> .foo.bar { }
>
> In other words:
> .foo.bar { }
> will match with:
> <div class="foo bar">Something</div>
>
> Example:
> http://files.trygve-lie.com/examples/css_dash/
>
> Kind regards
> Trygve Lie
>
> --
> To view archived discussions from the original JSMentors Mailman list:
> http://www.mail-archive.com/[email protected]/
>
> To search via a non-Google archive, visit here:
> http://www.mail-archive.com/[email protected]/
>
> To unsubscribe from this group, send email to
> [email protected]
>


------------------------------------------------
Trygve Lie | http://www.trygve-lie.com

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to