Reputation: 17
i have this div:
<div class="page-template-default logged-in"></div>
I need to apply a class like this:
.page-template-default .logged-in {
}
But this don't work, why?
Upvotes: 0
Views: 19
Reputation: 73
You have to include a comma:
.page-template-default, .logged-in {
}
Upvotes: 0
Reputation: 1747
You need to have the selector without a space in between.
.page-template-default.logged-in {
}
That's a chained class selector.
Upvotes: 1