Ver Mensaje Individual
  #3 (permalink)  
Antiguo 15/06/2009, 00:14
Avatar de Mikmoro
Mikmoro
Colaborador
 
Fecha de Ingreso: octubre-2006
Ubicación: K-pax
Mensajes: 7.228
Antigüedad: 17 años, 5 meses
Puntos: 280
Respuesta: Div que ocupe ancho restante ante uno fijo

Me he entretenido haciendo un ejemplo:
Cita:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es-es">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
* { padding:0; margin:0;}
html, body {height:100%;}
#contenedor {width: 50%;border: 1px solid #0f0; margin: 20px auto;background-color: #000;}
#izquierda {height:300px; width: 140px; float: left; border: 1px solid #f00; margin: 10px;}
#derecha {height:300px;border: 1px solid #0f0;margin: 10px 10px 10px 160px;}
</style>
</head>
<body>
<div id="contenedor">
<div id="izquierda"></div>
<div id="derecha"></div>
</div>
</body>
</html>