Ver Mensaje Individual
  #8 (permalink)  
Antiguo 12/06/2012, 14:48
dragonfire256
 
Fecha de Ingreso: septiembre-2011
Ubicación: Caracas
Mensajes: 240
Antigüedad: 12 años, 7 meses
Puntos: 9
Respuesta: Alinear cajas de texto

Cita:
Iniciado por Ruben_JD Ver Mensaje
Si no quieres que otros divs cambien añade el id="form1" que ya definiste:
Código CSS:
Ver original
  1. #form1 div {
  2.   margin: .4em 0;
  3. }
  4. #form1 div label {
  5.   width: 25%;
  6.   float: left;
  7. }
o también para aplicar solo a formularios
Código CSS:
Ver original
  1. form div {
  2.   margin: .4em 0;
  3. }
  4. form div label {
  5.   width: 25%;
  6.   float: left;
  7. }
Saludos.
Sigo sin hacerlo funcionar... Aqui te posteo el estilo que tengo... Vale la pena aclarar que la mayoria del codigo ccs lo agrega dreamweaver:

Código CSS:
Ver original
  1. <style type="text/css">
  2. <!--
  3. body {
  4.     font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
  5.     background: #4E5869;
  6.     margin: 0;
  7.     padding: 0;
  8.     color: #000;
  9. }
  10.  
  11. ul, ol, dl {
  12.     padding: 0;
  13.     margin: 0;
  14. }
  15. h1, h2, h3, h4, h5, h6, p {
  16.     margin-top: 0; 
  17.     padding-right: 15px;
  18.     padding-left: 15px;
  19. }
  20. a img {
  21.     border: none;
  22. }
  23. a:link {
  24.     color:#414958;
  25.     text-decoration: underline;
  26. }
  27. a:visited {
  28.     color: #4E5869;
  29.     text-decoration: underline;
  30. }
  31. a:hover, a:active, a:focus {
  32.     text-decoration: none;
  33. }
  34.  
  35. .container {
  36.     width: 80%;
  37.     max-width: 1260px;
  38.     min-width: 780px;
  39.     background: #FFF;
  40.     margin: 0 auto;
  41. }
  42.  
  43. .header {
  44.     background: #6F7D94;
  45. }
  46.  
  47. .content {
  48.     padding: 10px 0;
  49. }
  50.  
  51. .content ul, .content ol {
  52.     padding: 0 15px 15px 40px;
  53. }
  54.  
  55. .footer {
  56.     padding: 10px 0;
  57.     background: #6F7D94;
  58. }
  59.  
  60. .fltrt {
  61.     float: right;
  62.     margin-left: 8px;
  63. }
  64. .fltlft {
  65.     float: left;
  66.     margin-right: 8px;
  67. }
  68. .clearfloat {
  69.     clear:both;
  70.     height:0;
  71.     font-size: 1px;
  72.     line-height: 0px;
  73. }
  74. -->
  75. html {
  76.     height: 100%;
  77.     width: 100%;
  78. }
  79. body{
  80.    height: 100%;
  81.    width: 100%;
  82.    background: -webkit-linear-gradient(#EE8711, #033E8D);
  83.    background: -moz-linear-gradient(#EE8711, #033E8D);
  84.    background: -o-linear-gradient(#EE8711, #033E8D);
  85.    background: -ms-linear-gradient(#EE8711, #033E8D);
  86.    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#EE8711', endColorstr='#033E8D',GradientType=0 );
  87. }
  88. .content{
  89.     background-color:#e1e5ff;
  90.     height:100%;
  91. }
  92. .container{
  93.     height:60%;
  94. }
  95. #form1 div label{
  96.     width:50%;
  97. }
  98. </style>

Disculpa que moleste tanto... Muchas gracias