Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/02/2013, 11:27
Avatar de jandrogdz
jandrogdz
 
Fecha de Ingreso: julio-2012
Ubicación: public $Guadalajara
Mensajes: 397
Antigüedad: 11 años, 10 meses
Puntos: 12
Pregunta Problema con div

Buenas foro

Tengo un problema con un div que sin yo decirle que abarque el 100% lo hace.
Es decir si yo le digo que abarque el 40% abarca el 100 en la web y eso no me permite utilizar el float en donde necesito este es mi hoja de estilo.

Código CSS:
Ver original
  1. @media only screen and (min-width: 769px) {
  2.     body{ background-color: #ececec; }
  3.     input { outline:none; }
  4.     .gridContainer {
  5.         width: 100%;
  6.         max-width: 1224px;
  7.     }
  8.     #LayoutDiv1 {
  9.         width: 100%;
  10.         background-color:#ffffff;
  11.     }
  12.     #sombra{
  13.         width:100%;
  14.         padding:0;
  15.         margin:0;
  16.         margin-bottom:1%;
  17.         box-shadow: 1px 1px 15px 1px #aaaaaa;
  18.     }
  19.    
  20. /*
  21. * estilo para HEADER Y DIV INTERNOS
  22. */
  23.  
  24.     #header{
  25.         width:100%;
  26.         height:85px;
  27.         background-color:#f1f1f1;
  28.         border-bottom:solid 1px #dddddd;
  29.     }
  30.     #logo {
  31.         height: 75px;
  32.         width: 40.50%;
  33.         float:left;
  34.         margin-top:0;
  35.     }
  36.    
  37.     #info{
  38.         width: 30.50%;
  39.         height:75px;
  40.         float:right;
  41.         margin-right:3%;
  42.         display:block;
  43.     }
  44.     #avatar{
  45.         width:60px;
  46.         height:60px;
  47.         border:solid 1px #dddddd;
  48.         border-radius:5px;
  49.         margin:5px 10px;
  50.         float:left;
  51.     }
  52.     #avatar img{
  53.         width:60px;
  54.         height:60px;
  55.     }
  56.    
  57.     #info p{
  58.         padding:0;
  59.         margin:1.6889%;
  60.         margin-left:1%;
  61.         color:#707070;
  62.         font-size:.9em;
  63.     }
  64.    
  65.     #info span{
  66.         padding:0;
  67.         color:#707070;
  68.         font-size:.9em;
  69.         padding-right:2%;
  70.     }
  71.    
  72.     #info span a{
  73.         color:#707070;
  74.         text-decoration:none;
  75.     }
  76.     #info span a:hover{
  77.         color:#c7cd13;
  78.         text-decoration:none;
  79.     }
  80.     .borde-der { border-right:solid 1px #aaaaaa; }
  81.  
  82. /*
  83. * estilo para LOGIN
  84. */
  85.     #login {
  86.         background-color:#eeeeee;
  87.         display:block;
  88.         width:40%;
  89.         border:solid 1px #dddddd;
  90.         border-radius:5px;
  91.         margin:3%;
  92.         background-color:#dcdcdc;
  93.         box-shadow:1px 1px 5px 1px #999999;
  94.         padding:0;
  95.     }
  96.    
  97.     #login-titulo{
  98.         width:100%;
  99.         height:60px;
  100.         background: #7fbf24;
  101.         background: -moz-linear-gradient(top, #9fe736 0%, #7fbf24 100%);
  102.         background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#9fe736), color-stop(100%,#7fbf24));
  103.         border-radius:5px;
  104.         box-shadow: inset 0px 0px 6px #fff;
  105.         -webkit-box-shadow: inset 0px 0px 6px #fff;
  106.         border: 1px solid #90c33e;
  107.         text-align:center;
  108.         font: bold 2.5em Helvetica, Sans-Serif;
  109.         text-transform: uppercase;
  110.         text-decoration: none;
  111.         color: #ffffff;
  112.         text-shadow: 0px 1px 3px #000000;
  113.         line-height:50px;
  114.         display:block;
  115.     }
  116.  
  117.     #cont-textos{
  118.         margin:4%;
  119.     }
  120.    
  121.     #login p{
  122.         display:none;
  123.     }
  124.     #login label{
  125.         width:35%;
  126.         float:left;
  127.         margin-top:1%;
  128.         font-size: 1.24em;
  129.         color:#ffffff;
  130.         text-shadow:1px 1px 1px #999;
  131.         cursor: default;
  132.         font-weight:bold;
  133.     }
  134.     #login input[type="text"], #login input[type="password"]{
  135.         height:35px;
  136.         width:80%;
  137.         border:solid 1px #cccccc;
  138.         border-radius:5px;
  139.         background-color: #f5f5f5;
  140.         color: #aaaaaa;
  141.         padding-left:12%;
  142.         font-weight:900;
  143.         font-size:1.3em;
  144.     }
  145.    
  146.     #login input[type="text"]:hover, #login input[type="password"]:hover, #login input[type="text"]:focus, #login input[type="password"]:focus{
  147.         border:solid 1px #cccccc;
  148.         box-shadow:5px 5px 15px #eeeeee;
  149.     }
  150.     #login input[type="text"]{
  151.         background-image: url('imagenes/icon_user.png');
  152.         background-size: 40px, 40px;
  153.         background-repeat: no-repeat;
  154.         background-position: -1px,0;
  155.     }
  156.  
  157.     #login input[type="password"]{
  158.         background-image: url('imagenes/icon_pwd.png');
  159.         background-size: 40px, 40px;
  160.         background-repeat: no-repeat;
  161.         background-position: -1px,0;
  162.     }
  163.  
  164.     #login input[type="submit"]{
  165.         display: block;
  166.         padding:2%;
  167.         margin-right:8%;
  168.        
  169.         background: #7fbf24;
  170.         background: -moz-linear-gradient(top, #9fe736 0%, #7fbf24 100%);
  171.         background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#9fe736), color-stop(100%,#7fbf24));
  172.      
  173.         box-shadow: inset 0px 0px 6px #fff;
  174.         -webkit-box-shadow: inset 0px 0px 6px #fff;
  175.         border: 1px solid #90c33e;
  176.         border-radius: 10px;
  177.      
  178.         font: bold 1.5em Helvetica, Sans-Serif;
  179.         text-align: center;
  180.         text-transform: uppercase;
  181.         text-decoration: none;
  182.         color: #ffffff;
  183.         text-shadow: 0px 1px 2px #000000;
  184.     }
  185.    
  186.     #login input[type="submit"]:hover{
  187.         background: #9fe736;
  188.         background: -moz-linear-gradient(top, #7fbf24 0%, #9fe736 100%);
  189.         background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#7fbf24), color-stop(100%,#9fe736));
  190.     }
  191.  
  192.  
  193. /*
  194. * estilo para BLOQUE DERECHO
  195. */
  196.    
  197.     #bloque-derecho{
  198.         width:30%;
  199.         height:100px;
  200.         border:solid 1px #aaaaaa;
  201.         border-radius:5px;
  202.         margin:0;
  203.         padding:0;
  204.     }
  205.    
  206. /*
  207. * estilo para FOOTER Y DIV INTERNOS
  208. */
  209.  
  210.     #footer{
  211.         width: 100%;
  212.         margin:0;  
  213.     }
  214.     #footer span{
  215.         color:#707070;
  216.         font-size:1.1em;
  217.         display:inline;
  218.         padding-left:3%;
  219.     }
  220.     #footer span a{
  221.         color:#707070;
  222.         text-decoration:none;
  223.     }
  224.     #footer span a:hover{
  225.         color:#c7cd13;
  226.         text-decoration:none;
  227.     }
  228.     .floats{ clear:both;}
  229. }

y esta es la web donde estoy haciendo el estilo:

http://iconograma.com/sistema/server_pruebas

Espero me puedan apoyar y de antemano muchas gracias.
__________________
Lo imposible solo cuesta un poco mas