Background color for scrolling - HTML CSS CSS Property

HTML CSS examples for CSS Property:background-color

Description

Background color for scrolling

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

body > div:first-of-type {
   width: 970px;
   outline: 1px solid red;
}
body > div:last-of-type {
   width: 100%;
   height: 20px;
   background-color: gray;
}
@media screen and (max-width: 970px) {
   body > div:nth-of-type(2) {
      width: 970px;
   }<!--from  w w  w. jav a2s  .  com-->
}


      </style> 
 </head> 
 <body> 
  <div>
    Text area 
  </div> 
  <div></div>  
 </body>
</html>

Related Tutorials