Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/07/2013, 09:09
Avatar de Mikmoro
Mikmoro
Colaborador
 
Fecha de Ingreso: octubre-2006
Ubicación: K-pax
Mensajes: 7.228
Antigüedad: 17 años, 6 meses
Puntos: 280
Respuesta: Input a 100% dentro de capa auto-ajustable

Pruébalo así:

Código HTML:
Ver original
  1. <html>
  2.     body {
  3.         margin:0px;
  4.     }
  5.  
  6.     .centro{
  7.         background:#e0e0e0;
  8.         min-width:400px;
  9.         height:400px;
  10.         overflow: inherit;
  11.     }
  12.  
  13.     .izquierda{
  14.         width:180px;
  15.         height:400px;
  16.         background:#91D0D0;
  17.         float:left;
  18.     }
  19.     #cajainterior {margin-left:180px;}
  20.  
  21.     input[type="text"] {
  22.         width: 100%;
  23.     }
  24. </head>
  25. <div class="contenedor">
  26.     <div class="izquierda"></div>
  27.     <div class="centro">
  28.         <div id="cajainterior"><input type="text" name="caja" /></div>
  29.     </div>
  30. </div>
  31. </body>
  32. </html>
__________________
Visita mi nueva web idplus.org