HTML CSS examples for CSS Widget:Table Cell
Space Between Table Cell
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> body {<!--from w w w . j a va2 s. co m--> background-color:Chartreuse; } table tr:nth-child(even) { background:yellow; color:blue; text-align:center; } </style> </head> <body> <table style="width:300px" cellspacing="0"> <tbody> <tr> <td>Lore</td> <td>Lorem</td> <td>Lo</td> </tr> <tr> <td>Lor</td> <td>Lorem i</td> <td>Lo</td> </tr> <tr> <td>Lor</td> <td>Lorem i</td> <td>Lo</td> </tr> </tbody> </table> </body> </html>