Tema: margin-top
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/09/2012, 09:53
tasmany94
 
Fecha de Ingreso: septiembre-2012
Mensajes: 66
Antigüedad: 11 años, 7 meses
Puntos: 4
margin-top

bueno tengo un problema..aver si me podeis ayudar..xk me estoy volviendo loco..

tengo este codigo:

Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<
title>Documento sin título</title>
<
style type="text/css">
body {
    
margin0px;
}
#contenedor {
    
widht:100%;
background:#090;

}
#marco {
    
width:50%;
    
margin-left:25%;
    
    
background:#666;
    
height:600px;
}
#imagen {
    
width:96%;
    
margin-left:2%;
    
margin-top:2%;
    
background:#FF0000;
}
</
style>

</
head>

<
body>
<
div id="contenedor">
<
div id="marco">
<
div id="imagen">
imagen
</div>
<
div id="caja">
<
div id="boton">
</
div>
</
div>
</
div>
</
div>
</
body>
</
html
el problema..en dreamweaver..me muestra perfectamente el margen-top que tiene "imagen" del 2% con "marco"

pero en el navegador..el margen me lo pone en "contenedor" y no se el xk.. e probado a poner el margen-top en "marco" y pasa lo mismo.se muestra como si el margen fuera en "contenedor" que problema es??

me podeis ayudar?

os lo agradeceria!