+ 1
HTML background
how i create black colour bar in top of the web page? need help!
4 Answers
+ 5
see the CSS I added
"background-color:#000;"
here #000 is the hexadecimal code for black
or you can simply write :
"background-color:black;
That's all
+ 5
Complete your HTML course and take CSS course so.
+ 4
using a division tag .
Just add it like this
.......HTML........
<div id = "box">Any Text</div>
........CSS.........
* {
margin:0px auto;
}
#box {
background-color:#000;
position:fixed;
width:100%;
height:60px;
}
+ 2
how i add a background colour to that box?