HTML CSS examples for CSS Layout:Relative Position
get attributes from both relative and absolute positioning
<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>