segunda-feira, 21 de maio de 2012

22.05.2012 - ter - 13a. semana

Trabalho dos Times de Futebol
  • Retomar e finalizar

À pedido do Rodrigo, segue abaixo link e dica para manter uma seção FOOTER no HTML que sempre estará ao final da página, independente da resolução.

http://matthewjamestaylor.com/blog/keeping-footers-at-the-bottom-of-the-page

 

 

The HTML div structure

<div id="container">
   <div id="header"></div>
   <div id="body"></div>
   <div id="footer"></div>
</div>

The CSS

html,
body {
   margin:0;
   padding:0;
   height:100%;
}
#container {
   min-height:100%;
   position:relative;
}
#header {
   background:#ff0;
   padding:10px;
}
#body {
   padding:10px;
   padding-bottom:60px;   /* Height of the footer */
}
#footer {
   position:absolute;
   bottom:0;
   width:100%;
   height:60px;   /* Height of the footer */
   background:#6cf;
}

Nenhum comentário:

Postar um comentário