Home › Forums › CSS › Very New to CSS (basic question about background color) › Reply To: Very New to CSS (basic question about background color)
September 7, 2018 at 7:39 am
#276345
Paulie_D
Member
It’s hard to tell but the code
body {
background-color:#D7CEC7;
}
certainly should work but it will only extend to the height of the content unless there is something else going on.
The body
element is not the height of the viewport by default.
If it’s not working in the stylesheet then either you have a path error (the stylesheet isn’t linked right) or a syntax error and you should check your code.