To select elements with two classes with CSS, we add both class selectors.
For instance, we werite
.foo.bar {
color: red;
}
to add select elements with both the foo
and bar
class applied and set their content color to red.
To select elements with two classes with CSS, we add both class selectors.
For instance, we werite
.foo.bar {
color: red;
}
to add select elements with both the foo
and bar
class applied and set their content color to red.