HTML CSS examples for CSS Widget:Table
Create rounded alternative table css class
<html> <head> <style> table#t01 td { padding:6px; border:2px solid Chartreuse; } table#t01 tr:nth-child(even) { background-color:yellow; } table#t01 tr:nth-child(odd) { background-color:blue; } table#t01 tr:first-child td:first-child { border-top-left-radius:11px; } table#t01 tr:first-child td:last-child { border-top-right-radius:11px; } table#t01 tr:last-child td:first-child { border-bottom-left-radius:11px; } table#t01 tr:last-child td:last-child { border-bottom-right-radius:11px; } </style> <!-- www . jav a 2 s . co m--> </head> <body> <table id="t01" cellspacing="0" align="center"> <tbody> <tr> <td>Lorem ipsum dolor sit </td> <td>Lorem ipsum dolor sit a</td> <td>Lorem ipsum dolor sit </td> </tr> <tr> <td>Lorem ipsum dolor sit a</td> <td>Lorem ipsum dolor sit am</td> <td>Lorem ipsum dolor sit a</td> </tr> <tr> <td>Lorem ipsum dolor sit </td> <td>Lorem ipsum dolor sit a</td> <td>Lorem ipsum dolor sit </td> </tr> <tr> <td>Lorem ipsum dolor sit </td> <td>Lorem ipsum dolor sit a</td> <td>Lorem ipsum dolor sit </td> </tr> <tr> <td>Lorem ipsum dolor sit </td> <td>Lorem ipsum dolor sit a</td> <td>Lorem ipsum dolor sit </td> </tr> </tbody> </table> </body> </html>