Separate css classes applied to one element - HTML CSS CSS Selector

HTML CSS examples for CSS Selector:class

Description

Separate css classes applied to one element

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">
.post .daily {<!--from   w  ww .  j  a  va 2  s . co  m-->
   background-color:Chartreuse;
   color:yellow;
   border:0;
   height:2px;
}

.post .weekly {
   background-color:blue;
   color:pink;
   border:0;
   height:2px;
}
</style> 
 </head> 
 <body> 
  <div class="post"> 
   <hr class="daily"> 
   <hr class="weekly"> 
  </div>  
 </body>
</html>

Related Tutorials