Ver Mensaje Individual
  #6 (permalink)  
Antiguo 27/10/2010, 11:44
kseso?
Colaborador
 
Fecha de Ingreso: junio-2007
Mensajes: 5.798
Antigüedad: 16 años, 10 meses
Puntos: 539
Respuesta: porcentajes + valores fijos

Dos cajas ocupando entre ellas el 100% del body, una de ellas con un borde lateral de 1px sin que ello fuerce la aparición del scroll-x y sin usar overflow: hidden.
Creo que era eso lo que se solicitaba.
A ver si lo siguiente es válido:
Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="es-es">
  3. <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  4. <title>Kseso? Jugando con css</title>
  5. <style type="text/css">
  6.  * {
  7.     margin: 0;
  8.     padding: 0;
  9.     border: 0;
  10.     outline: 0;
  11.   }
  12. html, body {
  13.     background: #FFFB00;
  14.     font-weight:normal;
  15.     font-size: 100%;
  16.     height:100%;
  17.     width:100%;
  18.   }
  19. #izquierda, #derecha {width: 50%; height: 400px; position: relative;}
  20. #izquierda {background: #4000F0; border-right: 1px solid #fff; float: left; margin-left: -1px;}
  21. #derecha {background: #000080; float: right;}
  22. </head>
  23. <div id="izquierda"></div>
  24. <div id="derecha"></div>
  25. </body>
  26. </html>

Era la idea que apuntaba en #2