![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
20/12/2007, 00:36
|
| | Fecha de Ingreso: diciembre-2007
Mensajes: 5
Antigüedad: 17 años, 2 meses Puntos: 0 | |
Re: Div absoluto con otros divs mira te corregi algunos detalles checalo y espero te sirva acostumbrate a usar archivos CSS, creo que es la mejor manera de administrar, asi te debe de funcionar bien.
<html>
<head>
<title>prueba</title>
<style type="text/css">
body,td,th {
background: #c0c0c0;
margin:0;
padding:0;
}
#contenedor{
width:100%;
height:500px;
margin-top:20px;
}
#caja1 {
width:504px;
height:500px;
background: #FFFFFF;
border: outset #000000 2px solid;
margin:0 auto;
}
#caja2 {
width:200px;
height:25px;
border:#000000 1px solid;
}
#Caja3 {
width:250px;
height:50px;
background:purple;
float:left;
}
#Caja4 {
width:250px;
height:50px;
background:blue;
float:right;
}
</style>
</head>
<body>
<div id="contenedor" align="center">
<div id="caja1">
<div id="Caja3"></div>
<div id="Caja4"></div>
<div id="caja2">creo que te refieres a esto </div>
</div>
</div>
</body>
</html> |