Ver Mensaje Individual
  #6 (permalink)  
Antiguo 21/01/2012, 13:20
Avatar de madhatterdef
madhatterdef
 
Fecha de Ingreso: diciembre-2011
Ubicación: argentina
Mensajes: 213
Antigüedad: 12 años, 4 meses
Puntos: 59
Respuesta: Forma correcta de crear header 100% width

esto???
Código:
<html>  
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<head>  
<style>
body{
    margin: 0px;
    padding: 0px;
}
.cabezera{
    width: 100%;
    margin: 0 auto;
    height: 50px;
    background-color: #F00;
}
.contenedor{
    width: 980px;
    margin: 0 auto;
    height: 50px;
}
.div1{
    width: 490;
    margin: 0 auto;
    background-color: #0FF;
    height: 50px;
    float: left;
}
.div2{
    width: 490;
    margin: 0 auto;
    background-color: #0F0;
    height: 50px;
    float: right;
}
</style>
</head>
<body>
<div class="cabezera">
<div class="contenedor">
<div class="div1"></div> 
<div class="div2"></div>
</div> 
</div>
</body>  
</html>