Align text centered at bottom of webpage - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Text

Description

Align text centered at bottom of webpage

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">
footer {<!--  w w  w  .j  ava2s .  c  o  m-->
   position:absolute;
   bottom:9px;
   left:51%;
   -ms-transform:translateX(-51%);
   -webkit-transform:translateX(-51%);
   transform:translateX(-51%);
   background:aqua;
}
</style> 
 </head> 
 <body> 
  <footer>
    footer 
  </footer>  
 </body>
</html>

Related Tutorials