Fixed last column of the table - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Column

Description

Fixed last column of the table

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
table {<!--  w w  w  .  j a  va 2s. co  m-->
   width:100%;
}

td:last-of-type {
   float:right;
}
</style> 
 </head> 
 <body> 
  <div> 
   <table> 
    <tbody> 
     <tr> 
      <td>Lore</td> 
      <td>Lore</td> 
      <td>Lore</td> 
     </tr> 
     <tr> 
      <td>Lore</td> 
      <td>Lore</td> 
      <td>Lore</td> 
     </tr> 
    </tbody> 
   </table> 
   <div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials