Ver Mensaje Individual
  #6 (permalink)  
Antiguo 08/03/2014, 16:58
Avatar de pzin
pzin
Moderata 😈
 
Fecha de Ingreso: julio-2002
Ubicación: Islas Canarias
Mensajes: 10.488
Antigüedad: 21 años, 9 meses
Puntos: 2114
Respuesta: CSS - Posicionamiento. Float:left

Prueba sin flotar el segundo elemento y añadiendo un overflow:

Código CSS:
Ver original
  1. #menu {
  2.   float: left;
  3.   width: 200px;
  4. }
  5.  
  6. #principal {
  7.   overflow: hidden;
  8. }

Es bastante robusto.

Aunque también podrías usar calc:

Código CSS:
Ver original
  1. #principal {
  2.   float: left;
  3.   width: calc(100% - 200px);
  4. }