+ 2
In css, how do I colour my background??
3 ответов
+ 6
body {
background-color:black;
}
+ 1
You can change the background color of any element using this syntax:
background-color: color | transparent | initial | inherit;
For example, the background color for a div element can be changed like this:
div {
background-color:#ffccff;
}
0
You can use background instead background-color it's better and you can use image in it if u want