Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/06/2009, 00:27
opzina
 
Fecha de Ingreso: marzo-2008
Mensajes: 1.020
Antigüedad: 16 años, 1 mes
Puntos: 21
Respuesta: (Consulta) Z-index, position y Margin

Ejemplo:

Código HTML:
<div id="head">Cabeza con titulo y barra de navegacion</div>

<div class="wrappler"></div>

<div id="cuerpo">Cuerpo con el contenido esto quiero que flote y se superponga por arriba del header unos 20px</div>

<div class="wrappler"></div>

<div id="footer">Pie de pagina</div> 
La css:

Código HTML:
#head { width:100%; height:100px; backround-color:#frf56h;}

.wrappler {clear:both; width:100%; margin:0 auto;}

#cuerpo {width:800px; min-height:650px; height:auto; overflow:hidden; position:relative; z-index:2; margin-top:-20px}

#footer{width:100%; height:50px; margin-top:20px; margin-bottom:50px; border-top: 2px #fff;}
Bueno algo asi, lo hice a ojo, no tengo editor en esta maquina.