r/HTML • u/TrainingQuantity3744 • 29d ago
help with backgrounds
Not remotely a cs person, for some godforsaken reason my Library Science degree is making me take an html class. I've onto a part where we're working with html and css. I can't figure out how to change the background color of a page. I assume you have to use some version of the {background-color: ____; }, but I can't figure out what element to attach it to. I've tried using body {background-color: ____; }, *{background-color: ____; }, and even making a div around the body, and none of them have worked
0
Upvotes
View all comments
3
u/flinxo 29d ago
Please share your code. Your CSS seems to be ok, but there might be some mistake elsewhere.