Ver Mensaje Individual
  #3 (permalink)  
Antiguo 20/08/2008, 15:58
Avatar de Mikmoro
Mikmoro
Colaborador
 
Fecha de Ingreso: octubre-2006
Ubicación: K-pax
Mensajes: 7.228
Antigüedad: 17 años, 6 meses
Puntos: 280
Respuesta: ¿Esto es imposible con DIVs?

Prueba con esto:

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="en" lang="en">
<head>
<title>test</title>
<style type='text/css'>
html, body {height: 100%;
width: 100%;
margin:0;
padding:0;
background-color:yellow;
}
#azul {background-color:blue;height: 100%;width: 600px;position: absolute;right: 0;top: 0;}
#rojo {background-color:red;width: 700px;height: 100%;margin: 0 auto;position: relative;}
#marron {background-color: maroon;width:500px; height: 500px; margin:auto;position: relative;top: 40px;}
</style>
</head>
<body>
<div id="azul"></div>
<div id="rojo">
<div id="marron">Hola</div>
</div>
</body>
</html>
__________________
Visita mi nueva web idplus.org