Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/03/2014, 15:25
Avatar de JuJoGuAl
JuJoGuAl
 
Fecha de Ingreso: julio-2009
Ubicación: Venezuela
Mensajes: 754
Antigüedad: 14 años, 9 meses
Puntos: 19
Heigh 100% a un Div con Posicion Relative

Buenas amigos tengo este pequeño y funcional codigo que hace que 3 capas se centren:

Código CSS:
Ver original
  1. /*Esta capa contiene los 2 bordes y el Form de Inicio*/
  2. #Contenedor {
  3.     top: 0px;
  4.     left: 0px;
  5.     margin: 0px;
  6.     padding: 0px;
  7.     width: 100%;
  8.     height: 100%;
  9. }
  10. #panel_left{
  11.     position: relative;
  12.     height: 100%;
  13.     float: left;
  14.     width: -moz-calc(50% - 225px);
  15.     width: calc(50% - 225px);
  16.     background-color:#F00;
  17.     /*background-image: url(./images/body_left.png);*/
  18.     background-repeat: no-repeat;
  19.     background-position: right top;
  20.     background-size: 87px 100%;
  21. }
  22. #panel_center{
  23.     position: relative;
  24.     background-color:#CCCCCC;
  25.     margin: 0px 50px;
  26.     float: left;
  27.     width: 350px;
  28.     height: 100%;
  29. }
  30. #panel_right{
  31.     position: relative;
  32.     height: 100%;
  33.     float: left;
  34.     width: -moz-calc(50% - 225px);
  35.     width: calc(50% - 225px);
  36.     background-color:#0000FF;
  37.     /*background-image: url(./images/body_right.png);*/
  38.     background-repeat: no-repeat;
  39.     background-position: left top;
  40.     background-size: 87px 100%;
  41. }

Código HTML:
Ver original
  1. <div id="Contenedor">    
  2.     <div id="panel_left">a</div>
  3.     <div id="panel_center">          
  4.             <span>Iniciar sesi&oacute;n</span>                
  5.     </div>
  6.     <div id="panel_right">a</div>
  7.     <div style="clear: both;"></div>
  8. </div>

Claro es un Ejemplo de lo que en realidad estoy haciendo, pero basicamente necesito que Panel_Left, Panel_center y Panel_Right tengan un 100% de alto, pero con el Heigh a 100% no lo logro...?