Ask coding questions

← Back to all posts
Background color
Coder2404 (361)

How do you add a background color in css?

Answered by thewaydu (18) [earned 5 cycles]
View Answer
Comments
hotnewtop
thewaydu (18)

body {
background-color: white;
}

Coder2404 (361)

Ok lemme see if it works- @thewaydu

thewaydu (18)

@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.

RYANTADIPARTHI (6001)

Solution

try this in css.

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

like that.