
y mi codigo es este:
Código HTML:
Ver original
<!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>
<style type="text/css">
#divPadre {
height:100px;
width:800px;
background-color:blue;
overflow: hidden;
position: absolute;
left: 50%;
top: 50%;
margin-top: -100px;
margin-left: -150px;
}
#cajon1 {
float:left;
margin:0px auto;
background:#CC6600;
}
#cajon3 {
clear:both;
margin:0px auto;
background:#CC6600;
}
</style>
</head>
<body>
<div id="divPadre">
<div id="cajon1">
DonMango
</div>
<div id="cajon3">
Registro de usuarios
</div>
</div>
</body>
</html>
quiero hacer que los divs hijos queden centrado dentro del padre y el div donde dice registro de usuarios no tenga el mismo ancho que el div padre
Muchas gracias por regalarme un poco de su tiempo.
 
 



