HTML CSS examples for CSS Widget:Table Column
Variable number of columns in an HTML table
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> td {<!--from www . j a va 2 s . c o m--> background:Chartreuse; } .one { background:yellow; } .two { background:blue; } </style> </head> <body> <table border="1" cellspacing="0" width="450px" cellpadding="3px" bordercolor="#FFFFFF"> <tbody> <tr> <td rowspan="2" width="50px" height="50px" class="one"></td> <td width="200px">L</td> <td width="200px">L</td> </tr> <tr> <td>L</td> <td>L</td> </tr> <tr> <td colspan="2" class="two">Lorem</td> <td>L</td> </tr> </tbody> </table> </body> </html>