H1 heading problem in CSS
8 answers
The url would be helpful.
Also, CSS rules are inline. (for example a background color, not a background color)
Read about the CSS specifics, maybe this is the problem: http://htmldog.com/guides/cssadvanced/specificity/
+4
a source to share
Try putting "! Important" behind it:
color: green !important;
Note that this only applies if other styles exist that override the external css. You should check that your external CSS file is readable at all. You can do this by creating a new paragraph for example. Give it an id (id = "foo") and set that to your css
color: green;
If it doesn't turn green you should check your css include path.
0
a source to share
h1 {
background: red !important;
color: green !important;
}
Also, depending on how your original h1 declaration was written, you can use specificity and cascading to overwrite previous values.
0
a source to share