Html table column width with span - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Column

Description

Html table column width with span

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>
table, th, td {
   border:2px solid Chartreuse;
}
</style> <!--from w w  w  .  j  a v a2  s  . co m-->
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td style="width:50%;">Lorem </td> 
     <td colspan="2" style="width:50%;">Lorem </td> 
    </tr> 
    <tr> 
     <td>Lorem </td> 
     <td>Lorem </td> 
     <td>Lorem </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials