Ver Mensaje Individual
  #4 (permalink)  
Antiguo 23/03/2006, 06:30
Avatar de SiR.CARAJ0DIDA
SiR.CARAJ0DIDA
 
Fecha de Ingreso: junio-2004
Ubicación: Acá
Mensajes: 1.166
Antigüedad: 19 años, 9 meses
Puntos: 4
todo lo que flota debe tener un ancho fijo y siempre van primero las capas flotantes.
Código:
<html>
<head>
<style type="text/css" media="screen">
.izquierda {
    background-color: #aaa;
    float: left;
    width:200px;
}
.centro {
    background-color: #cccc55;
    margin-left:200px;
    margin-right:200px;
}
.derecha {
    background-color: ffaacc;
    float: right;
    width:200px;
}
</style>
</head>
<body>
    <div class="izquierda">
        Izquierda
    </div>
    <div class="derecha">
        Derecha
    </div>
    <div class="centro">
        Centro
    </div>
</body>
</html>
__________________
Internet Explorer SuckS
Download FireFox