Show footer only on last page - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Footer

Description

Show footer only on last page

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style type="text/css">
.newpage {<!--  w  ww.  j av a2s  .  c om-->
   page-break-before:always
}

@page{@bottom-center {
   content:element(footer)
}

#footer {
   position:running(footer);
}
</style> 
 </head> 
 <body> 
  <div>
    Lorem ipsum dolo 
  </div> 
  <div class="newpage">
    Lorem ipsum dolo 
  </div> 
  <div class="newpage">
    Lorem ipsum dolo 
  </div> 
  <div id="footer">
    Lorem ipsum dolor sit 
  </div>  
 </body>
</html>

Related Tutorials