Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/04/2011, 03:43
whitefeathers
 
Fecha de Ingreso: diciembre-2010
Mensajes: 51
Antigüedad: 13 años, 4 meses
Puntos: 9
Respuesta: Problemas con los div

¿Es esto lo que quieres?

Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<title>ejemplo</title>
<style type="text/css">
#menu {
	width: 20em;
	background-color: #C93;
	float: left;
}
#contenedor {
	background-color: #333;
	width: 50em;
}
#contenido {
	width: 30em;;
	background-color: #3C6;
	float: right;
}
</style>
</head>

<body>
<div id="contenedor">
  <div id="menu">
    <p>MENU</p>
    <p>MENU</p>
  </div>
  <div id="contenido">
    <p>CONTENIDO</p>
    <p>CONTENIDO</p>
    <p>CONTENIDO</p>
    <p>CONTENIDO</p>
  </div>
</div>
</body> 
Faltaba ponerle un ancho al contenedor, yo le he puesto 50em, para así darle 20em al menú y el restante, 30em.