Table width for last tr - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Width

Description

Table width for last tr

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> <!--from   w w w.  j a v  a 2  s  . co m-->
 <body> 
  <table border="1" width="820" cellpadding="2"> 
   <caption align="bottom">
     Lorem ipsum d 
   </caption> 
   <tbody> 
    <tr> 
     <th>Lorem ipsum</th> 
     <th colspan="2">Lorem ipsum dolor sit amet, consect</th> 
     <th>Lorem ipsum</th> 
     <th>Lorem ipsum</th> 
     <th>Lorem ipsum</th> 
     <th>Lorem ipsum</th> 
    </tr> 
    <tr> 
     <td>L</td> 
     <td colspan="2">L</td> 
     <td>L</td> 
     <td>L</td> 
     <td>L</td> 
     <td>Lorem </td> 
    </tr> 
    <tr> 
     <td>L</td> 
     <td colspan="2">Lorem ipsum</td> 
     <td></td> 
     <td>L</td> 
     <td>Lorem</td> 
     <td>Lorem</td> 
    </tr> 
    <tr> 
     <td>L</td> 
     <td colspan="2">Lorem ipsum</td> 
     <td></td> 
     <td>L</td> 
     <td>Lorem</td> 
     <td>Lorem</td> 
    </tr> 
    <tr> 
     <td>L</td> 
     <td colspan="2">Lorem ipsum </td> 
     <td></td> 
     <td>L</td> 
     <td>Lorem</td> 
     <td>Lorem</td> 
    </tr> 
    <tr> 
     <td>L</td> 
     <td colspan="2">Lorem ipsum </td> 
     <td></td> 
     <td>L</td> 
     <td>Lorem</td> 
     <td>Lorem</td> 
    </tr> 
    <tr height="210"> 
     <td colspan="2" rowspan="3">Lorem ipsum</td> 
     <td colspan="3" rowspan="3">Lorem ipsum</td> 
     <td rowspan="2">Lorem</td> 
     <td>Lorem</td> 
    </tr> 
    <tr> 
     <td>L</td> 
    </tr> 
    <tr> 
     <td>L</td> 
     <td>L</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials