views:

54

answers:

3

How do I do a css selector that selects a div that has the class of "someButton" AND "current"?

.someButton .current { /* select current with the parent div of .someButton, correct? */

Please help me figure this out!

+3  A: 

Remove the whitespace

.someButton.current
Nick Spiers
+6  A: 

You need to concatenate it: .someButton.current.

With a space, it will be seen as "apply on any element with class .current which is nested in a parent element with class .someButton".

BalusC
A: 

div.someButton.current { ... }

AdamZ