Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/02/2007, 00:47
ThunderFx
 
Fecha de Ingreso: diciembre-2003
Ubicación: Campehce, Mexico
Mensajes: 325
Antigüedad: 20 años, 4 meses
Puntos: 0
Re: Cómo centrar horizontalmente una capa dentro del sitio?

Código PHP:
<!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" lang="es" xml:lang="es">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<
title>Bienvenido</title>
<
style type="text/css">
<!--
/* Etiquetas */
body {
    
margin-left0px;
    
margin-top0px;
    
margin-right0px;
    
margin-bottom0px;
}
{
    
font-family:ArialHelveticasans-serif;
    
font-size:12px;
    
color:#111111
    
/* Capas */
}
#contenedor {
    
width:760px;
    
z-index:1;
    
left:0px;
    
top:0px;
    
margin:0 auto;
}
#centrado {
    
width:760px;
    
height:auto;
    
z-index:2;
    
left:0px;
    
top:0px;
}
#superior {
    
width:760px;
    
height:100px;
    
z-index:3;
    
left:0px;
    
top:0px;
    
background-color:#666666;
}

-->
</
style>
</
head>
<
body>
    <
div id="contenedor">
        <
div id="centrado">
            <
div id="superior">
            </
div>
        </
div>
    </
div>
</
body>
</
html
Bendiciones.. algo he aprendido :D espero no estar mal, no soy experto sino experimento hasta que logró dar con el problema (no siempre)