HTML CSS examples for CSS Selector:nth-child
take nth-child in css
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> tr:not(:last-child)>td, tr:last-child>td:not(:last-child) { color:Chartreuse; } </style> <!-- w w w .j a va 2s. co m--> </head> <body> <table> <tbody> <tr> <td>L</td> <td>L</td> <td>L</td> </tr> <tr> <td>L</td> <td>L</td> <td>L</td> </tr> <tr> <td>L</td> <td>L</td> <td>L</td> </tr> </tbody> </table> </body> </html>