Ver Mensaje Individual
  #9 (permalink)  
Antiguo 23/02/2011, 18:55
Avatar de kiM-
kiM-
 
Fecha de Ingreso: mayo-2008
Mensajes: 191
Antigüedad: 16 años
Puntos: 2
Respuesta: Quebraderos de cabea con DIVs y CSS

Ves... mira, ya tengo dos errores y eso que hice los pasos que me dijiste...

Te pego el código para que veas:

Cita:
<!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">
#contenedor {
width: 960px;
margin-top: -20px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
border-right-width: 2px;
border-left-width: 2px;
border-right-style: dotted;
border-left-style: dotted;
border-right-color: #333;
border-left-color: #333;
}
.contenido {
width: 744px;
float: left;
}
.menu2 {
float: right;
width: 216px;
}
#news3 {
width: 744px;
p{padding-left:15px;
background-image: url(webs/bgbody.png);
}
</style>
</head>

<body>
<div id="contenedor"><img src="webs/logo.png" width="960" height="245" /><img src="webs/menu20.png" width="960" height="106" />
<div class="contenido">Colocar aquí el contenido para class "contenido"<br />
<img src="webs/body1.png" width="744" height="42" />
<div class="news3"><p>Colocar aquí el contenido para class "news3"</p></div>
<img src="webs/ftbody.png" width="744" height="53" /> </div>
<div class="menu2">Colocar aquí el contenido para class "menu"</div>
<div id="footer"><img src="webs/footer1.jpg" width="960" height="93" /><img src="webs/footer2.jpg" width="960" height="96" /></div>
</div>
</body>
</html>
Los errores son los siguientes:

1. El fondo en news3 no se me ve, se sigue viendo blanco y no hay manera de que se modifique..

2. He usado lo de encerrar el texto en <p> y luego ponerle estilo como has dicho y no se coloca esos 15px a la izquierda, sigue dónde está :\

¿Qué hago mal?

Saludos y gracias por responder!