Ver Mensaje Individual
  #3 (permalink)  
Antiguo 07/05/2009, 04:44
xurxinho
 
Fecha de Ingreso: marzo-2009
Mensajes: 171
Antigüedad: 15 años, 1 mes
Puntos: 4
Respuesta: Segunda columna al 100%

Pongo un código más completo
Código HTML:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es-es">
<head>
<title>dos columnas</title>
<style type="text/css">
html,body{
	margin:0px;
	padding:0px;
	background-color:#2F74B1;
	height:500px;
}
#side{
	position:relative;
	width:100%;
	height: auto!important;
	min-height: 100%;
	height: 100%;
	background:#2F74B1;
	border:0px solid #000;
}
#leftside{
	left:0px;
	top:0px;
	position:absolute;
	width:220px;	
	height: auto!important;
	min-height: 100%;
	height: 100%;
	background-color:#2F74B1;
	text-align:right;
}
#rightside{
	top:0px;
	left:220px;
	position:absolute;
	width:auto;
	height: auto!important;
	min-height: 100%;
	height: 100%;
	background:#faffff; 
	padding:1em;
}
</style>
</head>
<body>
<div id="side"> 
	  <div id="leftside"> 
		menu
	  </div>
	  <div id="rightside"> 
					contenido
					<div class="pie"> 
							<a href="http://jigsaw.w3.org/css-validator/check/referer"><img  src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="¡CSS Válido!" /></a> 
							<a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10-blue" alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a> 
					</div>
					 
				
	  </div>
</div>
</body>
</html> 
Yo quiero que rightside sea siempre el 100% de lo que queda de la pantalla, en la parte izquierda va un menú y en la derecha el contenido.