Ver Mensaje Individual
  #4 (permalink)  
Antiguo 24/12/2012, 11:33
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: Alinear formularios

Cita:
Iniciado por carlosuc99 Ver Mensaje
He hecho esto:

Código HTML:
Ver original
  1. <label for="icao">ICAO</label> <input type="text" id="icao" name="icao" /><br />

Ahora como le puedo aplicar esto que tenía hecho en CSS para lo antiguo?

Código CSS:
Ver original
  1. td.Forms {
  2.    
  3.  
  4.     text-align: left;
  5.     text-indent: 10px;
  6.     font-family: Century Gothic;
  7.     font-weight: normal;
  8.     font-size: 15px;
  9.     white-space: nowrap;
  10. }
Si lo he entendido, algo muy básico sería

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <title>titulo</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6.  
  7. <style type="text/css">
  8. label {
  9. display: inline-block;
  10. width: 300px;
  11. }
  12. </head>
  13. <label>campo 1</label><input type="text" /><br />
  14. <label>campo xxx 2</label><input type="text" /><br />
  15. <label>campo zz 3</label><input type="text" /><br />
  16. </form>
  17. </body>
  18. </html>

Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.

Última edición por emprear; 24/12/2012 a las 21:28