/ Published in: HTML
Alternate between the #centro { height } to validate the perfection of this code.
Expand |
Embed | Plain Text
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <style type="text/css" media="screen"> * { margin: 0; padding: 0; } html, body { height: 100%; } #limites { position: relative; margin: 0 auto; height: auto !important; min-height: 100%; width: 960px; background: #999; } #centro { background: #666; height: 100px; /*height: 1000px;*/ } #footer { background: red; height: 100px; position: absolute; bottom: 0; width: 100%; } </style> </head> <body> <div id="limites"> <div id="centro"> </div> </div> </body> </html>
Comments
Subscribe to comments
You need to login to post a comment.

Cull piece of code