Mads Kristensen Mads Kristensen - 3 months ago 10
CSS Question

Correct syntax for styling h1 and h2 in same class

I have a h1 and h2 tag, that I would like to style on a specific class. But how is the correct syntax for that? Here is it only h1 there is getting blueviolet:

.adresse h1,h2 {
color: blueviolet;
}

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