select this td element - HTML CSS CSS

HTML CSS examples for CSS:Selector

Description

select this td 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">
tr.Foobar td:first-child + td {
   color:Chartreuse;
}
</style> <!-- w  ww.j a  v  a 2  s.  c  o m-->
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr class="Foobar"> 
     <td>L</td> 
     <td>L</td> 
     <td>L</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials