- Impact
- 11,347
I have 2 H1 headings in my index file. One is colored gray, and the other I've just added and want the color to be blue. How do I add the code to my CSS file to achieve this? Here is my current CSS code...
h1,h2,h3,h4,h5,h6
{
color: #666;
margin: 0 0 1em 0;
font-weight: 100;
line-height: 1.5em;
}
Comment: Everything from here is indented
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a
{
color: inherit;
text-decoration: none;
}
.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h5,
.dark h6
{
color: #fff;
}
I tried adding (with <h1 class="blue"> in the index file), without success...
h1 blue
{
color: #0000FF;
}
h1,h2,h3,h4,h5,h6
{
color: #666;
margin: 0 0 1em 0;
font-weight: 100;
line-height: 1.5em;
}
Comment: Everything from here is indented
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a
{
color: inherit;
text-decoration: none;
}
.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h5,
.dark h6
{
color: #fff;
}
I tried adding (with <h1 class="blue"> in the index file), without success...
h1 blue
{
color: #0000FF;
}
Last edited: