Applying background color to nested elements of class - HTML CSS CSS Property

HTML CSS examples for CSS Property:background-color

Description

Applying background color to nested elements of class

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <link rel="stylesheet" type="text/css" href="http://cdn.strategiqcommerce.com/ajax/libs/foundation/4.0.5/css/foundation.css"> 
  <style id="compiled-css" type="text/css">
.wrapper {<!--from w w w. java  2  s  . co  m-->
   color:Chartreuse;
   background-color:yellow;
}

h1 {
   color:blue;
}
</style> 
 </head> 
 <body> 
  <div class="row"> 
   <div class="large-12 columns"> 
    <div class="wrapper"> 
     <div class="large-6 small-6 columns"> 
      <h1>site-title</h1> 
     </div> 
     <div class="large-6 small-6 columns"> 
      <p>descrption</p> 
     </div> 
     <div style="clear:both;"></div> 
    </div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials