HTML CSS examples for CSS Selector:class
Separate css classes applied to one element
<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>