HTML CSS examples for CSS Widget:Table Cell
Using nth-child in tables tr td
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> table tr td:nth-child(2) { background:Chartreuse; } </style> <!--from www . j a v a2s.co m--> </head> <body> <table width="100%" border="1"> <tbody> <tr> <td> </td> <td>L</td> <td> </td> </tr> <tr> <td> </td> <td>L</td> <td> </td> </tr> <tr> <td> </td> <td>L</td> <td> </td> </tr> <tr> <td> </td> <td>L</td> <td> </td> </tr> <tr> <td> </td> <td>L</td> <td> </td> </tr> </tbody> </table> </body> </html>