Here is a code snippet:
div.note.note_expanded
What does it mean? I understand div.className, but what is the second dot?
Here is a code snippet:
div.note.note_expanded
What does it mean? I understand div.className, but what is the second dot?
A div that has the class note and note_expanded at the same time
Something like <div class='note note_expanded'> would match that.
This would target a div that has both a class of .note and a class of .note_expanded.
<div class="note note_expanded">I'm special!</div>
<style>
div.note.note_expanded {
color:blue;
}
div.note {
color:red;
}
div.note_expanded {
color:black;
}
</style>
<div class='note note_expanded'>
This is blue but I would think there must be an easier way.
</div>