MattDahEpic MattDahEpic - 10 months ago 68
CSS Question

CSS values not applying to elements

I have a css file that is meant to theme a page to be white on black, rather than black on white.

body {
background-color: black;
h1 h2 h3 h4 h5 h6 p {
color: white;

but for some reason the
color: white;
is not applying to text elements on my page, an example is at

Things I have tried:

The client has access to all required files.

Adding the color to the individual element style works just fine, but I'd rather not.

Changing where in the
the sheet is or moving it to the body does nothing.

Answer Source

Separate elements with comma:

h1, h2, h3, h4, h5, h6, p {
    color: white;

and have to add this if you want your jumbotron to be white either

.jumbotron {
    color: white;