I feel like the answer to this question is probably very simple, but I'm honestly struggling with this.
I have a web page in which all heading will need to be blue, so I added this to my stylesheet:
h1, h2, h3, h4, h5, h6 {
color: blue;
}
However, on the same page there will be 5 different divs, in which the heading color will need to be different so I tried this:
#divname h1, h2, h3, h4, h5, h6 {
color: green;
}
However, it's making all headings on the page green, not just the headings in the div. Perhaps my CSS abilities are still a little rusty, but what am I doing wrong here. The website I'm editing is fairly old and has some archaic CSS applied to it, could it just be conflicting with the old CSS somehow?
Thank you!