Mads Kristensen Mads Kristensen - 3 months ago 10
CSS Question

Styling h1 and h2 inside same class

I have a

h1
and
h2
tag that I would like to style on a specific
class
. But what is the correct syntax for that? Here only
h1
is getting
color: blueviolet
:

.adresse h1, h2 {
color: blueviolet;
}

Answer

This code can help you.

.adresse h1, 
.adresse h2 {
    color: blueviolet;
}