HTML CSS examples for CSS Widget:Table Column
Table-layout fixed colspan
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #test {<!-- ww w . ja v a 2 s . co m--> width:100%; border-spacing:21px; border-collapse:separate; table-layout:fixed; } #test td { position:relative; background-color:Chartreuse; box-shadow:4px 4px 3px yellow; padding:0; } </style> </head> <body> <table id="test"> <tbody> <tr> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td>Lorem ipsum</td> <td colspan="2">Lorem ipsum</td> <td>Lorem ipsum</td> <td colspan="2">Lorem ipsum</td> </tr> </tbody> </table> </body> </html>