Select <td> tags in multiple tables while excluding specific tables - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

Select <td> tags in multiple tables while excluding specific tables

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Lorem ipsum dolor sit amet, consectetur adipiscing </title> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
tr<!--   ww w .j  a  v  a  2 s .co m-->
 {
   background-color:Chartreuse;
}

.tableDate
 {
   background-color:yellow;
}
</style> 
 </head> 
 <body> 
  <div id="schedule"> 
   <table class="tableListings"> 
    <tbody> 
     <tr class="tableDate"> 
      <td>Lor</td> 
      <td>Lor</td> 
     </tr> 
    </tbody> 
   </table> 
   <table class="tableListings"> 
    <tbody> 
     <tr> 
      <td>Lor</td> 
      <td>Lor</td> 
      <td>Lor</td> 
     </tr> 
    </tbody> 
   </table> 
   <table class="tableListings"> 
    <tbody> 
     <tr class="tableDate"> 
      <td>Lor</td> 
      <td>Lor</td> 
     </tr> 
    </tbody> 
   </table> 
   <table class="tableListings"> 
    <tbody> 
     <tr> 
      <td>Lor</td> 
      <td>Lor</td> 
      <td>Lor</td> 
     </tr> 
    </tbody> 
   </table> 
  </div>  
 </body>
</html>

Related Tutorials