get attributes from both relative and absolute positioning - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Relative Position

Description

get attributes from both relative and absolute positioning

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  a  va2s  .c  o  m-->
   min-height:11px;
   width:941px;
   padding:6px;
   position:absolute;
   left:0;
   right:0;
   bottom:0;
   margin:auto;
   background-color:Chartreuse;
}
</style> 
 </head> 
 <body> 
  <div class="footer">
    Lorem ip 
  </div>  
 </body>
</html>

Related Tutorials