CSS Selector: Star followed by class selector - HTML CSS CSS Selector

HTML CSS examples for CSS Selector:class

Description

CSS Selector: Star followed by class selector

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">
div.myclass {<!--  ww  w . j  a  v a2 s  .c o  m-->
   background:gold;
}

div *.myclass {
   color:Chartreuse;
}
</style> 
 </head> 
 <body> 
  <div class="myclass">
    Lorem ipsum d 
  </div> 
  <div> 
   <div class="myclass">
     Lorem ipsum dolor 
   </div> 
   <span class="myclass">Lorem ipsum dolo</span> 
  </div>  
 </body>
</html>

Related Tutorials