HTML CSS examples for CSS Widget:Table Border
Add td border-radius to content
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .border { padding: 10px; border: 1px solid green; border-radius: 20px; background-color: silver; } table {<!-- w w w .j ava2 s . c o m--> border-collapse: separate; } </style> </head> <body> <table border="0"> <tbody> <tr> <td class="border"> Caption1 </td> <td class="border"> <div> 1 </div> <div> 2 </div> <div> 3 </div> </td> </tr> <tr> <td class="border"> Caption2 </td> <td class="border"> <div> 4 </div> <div> 5 </div> <div> 6 </div> </td> </tr> </tbody> </table> </body> </html>