HTML CSS examples for CSS Widget:Table
Rounded table corners CSS only
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> table {<!--from w w w . j av a 2s . co m--> border-collapse:separate; border-spacing:0; } table, td { border:2px solid Chartreuse; padding:6px; } table .first-line>td:first-child { border:solid black; border-width:2px 0px 0px 2px; border-radius:6px 0px 0px 0px; padding:6px; } table .first-line>td:last-child { border:solid black; border-radius:0px 6px 0px 0px; border-width:2px 2px 0px 2px; padding:6px; } table .last-line>td:first-child { border:solid black; border-width:2px 0px 2px 2px; border-radius:0px 0px 0px 6px; padding:6px; } table .last-line>td:last-child { border:2px solid yellow; border-radius:0px 0px 6px 0px; padding:6px; } </style> </head> <body> <table> <tbody> <tr class="first-line"> <td>L</td> <td>L</td> </tr> <tr class="last-line"> <td>L</td> <td>L</td> </tr> </tbody> </table> </body> </html>