Box Color With CSS

HTML
<html> <head> <title>Box Color With CSS</title> </head> <body> <div class="box red"></div> <div class="box green"></div> <div class="box black"></div> <div class="box"></div> </body> </html>
CSS
.box{ border:2px solid black; width:150px; height:150px; } .box{ float:left; margin:16px; } .box:hover{ background-color:blue; cursor:pointer; } .green{ background-color:green; } .yello{ background-color:yellow; } .black{ background-color:black; } .red{ background-color:red; }
JAVASCRIPT
Expand for more options Login