Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/05/2014, 13:19
phpnovatophp
 
Fecha de Ingreso: mayo-2014
Ubicación: madrid
Mensajes: 27
Antigüedad: 10 años
Puntos: 1
duda con los tamaños

Hola chicos. soy nuevo en esto. estoy aprendiendo css y html.
estoy dando forma a un formulario con css y no se porque el <select></select> del formulario me sale de diferente tamaño que los <input></input>.

tienen el mismo tamaño definido pero a la hora de la verdad el select es un poco mas pequeño.
¿xq pasa eso? y ¿cómo se corrige?

AQUI OS DEJO EL CÓDIGO:

Código HTML:
Ver original
  1. <!DOCTYPE html>
  2. <!--
  3. To change this license header, choose License Headers in Project Properties.
  4. To change this template file, choose Tools | Templates
  5. and open the template in the editor.
  6. -->
  7.     <head>
  8.     <title>TODO supply a title</title>
  9.     <meta charset="UTF-8">
  10.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11.     <style>
  12.         *{
  13.         margin: 0;padding: 0;      
  14.         }
  15.         body{
  16.         width: 900px;
  17.         background-color: antiquewhite;
  18.         }
  19.         form{
  20.         width: 800px;
  21.         margin: 0 auto;
  22.         background:  darkorange;
  23.         padding: 5px;
  24.         border-radius: 10px;
  25.         }
  26.         fieldset{
  27.         width: 50%;
  28.         background: chartreuse;
  29.         }
  30.         label, input, select{
  31.         width: 150px;
  32.         margin: 0 auto;
  33.         display: inline-block;     
  34.         }  
  35.         label{
  36.         color:black;
  37.         text-align: right;
  38.         }
  39.         input[type="submit"]{      
  40.         height: 55px;
  41.         margin: 5px;
  42.         }
  43.     </style>
  44.     </head>
  45.     <body>
  46.     <form>
  47.         <fieldset>
  48.         <label>nombre</label><input type="text" name="nombre">
  49.         <label>apellido</label><input type="text" name="nombre">
  50.         <label>contraseña</label><input type="text" name="nombre">
  51.         <label>provincia</label><select name="select">
  52.             <option value="cinco">cinco</option>
  53.             <option value="mad">Madrid</option>
  54.         </select>
  55.         <label>poblacion</label><input type="text" name="nombere">
  56.         <label>contraseña</label><input type="checkbox" name="fhdf" value="kfhef">
  57.         <label>dlfjdlfj</label><input type="checkbox" name="df" value="hombre">
  58.         <input type="submit" value="enviar">
  59.         </fieldset>
  60.     </form>
  61.     </body>
  62. </html>