Background-color fills - HTML CSS CSS Property

HTML CSS examples for CSS Property:background-color

Description

Background-color fills

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">

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
   display: block;
}

html, body {
   width:100%;
   height:100%;
}
body {<!--   ww  w .j  a  va  2s. c  om-->
   line-height: 1;
   margin:auto;
   text-align:center;
}
h1 {
   font-style: italic;
   display: inline;
   color:#3366FF;
}
li {
   padding-left: 20px;
   list-style-type: none;
   display: inline;
   color:#fff;
}
ol, ul {
   float:left;
   list-style: none;
   display: block;
   margin-left:20vw;
}
#banner {
   height:30%;
   background-color:black;
}
blockquote, q {
   quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
   content:'';
   content: none;
}
table {
   border-collapse: collapse;
   border-spacing: 0;
}


      </style> 
 </head> 
 <body> 
  <ul> 
   <li> <h1>test</h1> </li> 
   <li>test</li> 
   <li>test</li> 
  </ul> 
  <div id="banner">test test test tes tesr test</div>  
 </body>
</html>

Related Tutorials