Centering footer contents with css in html5 - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Footer

Description

Centering footer contents with css in html5

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. ja  v  a2  s  .c o  m-->
   margin:auto;
   height:331px;
   background-color:Chartreuse;
   color:yellow;
   text-align:center;
}
</style> 
 </head> 
 <body> 
  <footer>
    Lorem ipsum 
  </footer>  
 </body>
</html>

Related Tutorials