Skip to content
Sign upLog in
← Back to Community

Background color

Profile icon
[deleted]

How do you add a background color in css?

Answered by thewaydu [earned 5 cycles]
View Answer
Voters
Profile icon
Dayana-Valenti1
Profile icon
YOUNGMASTER77
Comments
hotnewtop
Profile icon
thewaydu

body {
background-color: white;
}

Profile icon
[deleted]

Ok lemme see if it works-

@thewaydu

Profile icon
[deleted]

@thewaydu
And...

Profile icon
[deleted]

@thewaydu
It works, thanks

Profile icon
thewaydu

@Coder2404
, do you know how to make a comment an answer, because i would suggest doing that because it closes the comment so people the the question is solved.

Profile icon
[deleted]
Profile icon
RYANTADIPARTHI

Solution

try this in css.

<style> body { background-color: red; } </style>

like that.

Profile icon
[deleted]
Profile icon
RYANTADIPARTHI

@Coder2404
no problem.

Profile icon
[deleted]

Thanks for helping me [email protected]

Profile icon
RYANTADIPARTHI

@Coder2404
glad to help :)

Profile icon
[deleted]