Place a table in the bottom of a printable page with css - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table

Description

Place a table in the bottom of a printable page with css

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">
.page<!--   w ww  .j  a v a2 s . c  o m-->
 {
   width:22cm;
   min-height:30.8cm;
   padding:2.3cm;
   margin:2cm auto;
   border:2px solid Chartreuse;
   border-radius:6px;
   background:white;
   box-shadow:0 0 6px yellow;
   position:relative;
}

#t_obs
 {
   position:absolute;
   bottom:0px;
}
</style> 
 </head> 
 <body> 
  <div class="page"> 
   <table id="t_obs"> 
    <tbody> 
     <tr> 
      <td>Lore</td> 
     </tr> 
    </tbody> 
   </table> 
  </div>  
 </body>
</html>

Related Tutorials