Override Background Color - HTML CSS CSS Property

HTML CSS examples for CSS Property:background-color

Description

Override Background Color

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">

* {<!--from  www. j  a v a2s  . co m-->
   margin:0px;
   padding:0px;
   background-color:#F6F6F1;
}
body {
   width:800px;
   margin-left:auto;
   margin-right:auto;
}
div {
   background-color:red;
}
h1 {
   background-color:transparent;
}


      </style> 
 </head> 
 <body> 
  <div id="header"> 
   <h1>Hello!</h1> 
  </div> 
  <div id="content"> 
  </div> 
  <div id="footer"></div>  
 </body>
</html>

Related Tutorials