Ver Mensaje Individual
  #6 (permalink)  
Antiguo 17/06/2008, 16:50
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: problema con centrado de div

No sé si lo que estás buscando es algo así. Por si acaso te lo pongo:

Cita:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
html, body {
width: 100%;
}
.box_ads {
width: 160px;
height: 300px;
float: right;
position: relative;
margin-right: 10px;
border:2px solid #FADDA9;
background-color:#FDF4E1;
}
.box_register {
width: 250px;
float: left;
position: relative;
margin-top: 16px;
margin-left: 12px;
border:2px solid #FADDA9;
background-color:#FDF4E1;
}
.versus {
background: #FFF;
font-size: 45px;
text-align: center;
margin: auto;
position: relative;
margin: 0px 180px 0px 270px;
border: solid 1px #f00;
}
</style>
</head>
<body>
<div class="box_ads">div derecho</div>
<div class="box_register">div izquierdo</div>
<div class="versus">contenido "central" (no totalmente :S)</div>
</body>
</html>
Copia y pega y pruébalo.

Te dejo el borde del central para que lo veas.

Mikel.