Muchísimas gracias, Ignacio; ahora sí se visualiza correctamente. float/clear es una cosa que no acabo de entender correctamente, sinceramente.
Y, acerca de lo que dices del campo label, siento llevarte la contraria: span es "phrasing content" e input es "labelable", así que creo que es correcto. Content model: Phrasing content, but with no descendant labelable form-associated elements unless it is the element's labeled control, and no descendant label elements. [...] The label represents a caption in a user interface. The caption can be associated with a specific form control, known as the label element's labeled control, either using for attribute, or by putting the form control inside the label element itself. [...] If the for attribute is not specified, but the label element has a labelable form-associated element descendant, then the first such descendant in tree order is the label element's labeled control. esto es del draft de html5, pero en... http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#h-17.9 Veo esto: In this example, we implicitly associate two labels with two text input controls: <FORM action="..." method="post"> <P> <LABEL> First Name <INPUT type="text" name="firstname"> </LABEL> <LABEL> <INPUT type="text" name="lastname"> Last Name </LABEL> </P> </FORM> Precisamente ayer estuve mirandomelo :P On 25/01/10 18:27, Ignacio Ricci wrote: > El label no debe rodear el campo, va aparte. > La sintaxis correcta es esta: > > <p> > <label for="nom">Nombre</label> > <input type="text" name="nom" id="nom" /> > </p> > > Después, cuando un elemento está flotado, transforma su propiedad display a > block, por lo tanto usar display:inline; en el elemento flotado no hace > nada. > > Los elementos input también deberian estár flotados. > > Y los parrafos (actualmente son labels), deberían aplicar un clear para > detener los flotados. > > Espero haber sido claro. > > n > > > 2010/1/25 Ferran Fontcuberta<fer...@fompi.net> > >> On 25/01/10 18:15, Ignacio Ricci wrote: >>> *EJEMPLO ONLINE* >> >> Perdón, este era mi primer mail a la lista. >> >> "Bien" formateado, con el padding a 6: >> http://pastehtml.com/view/5t45dr2.html >> >> Mal formateado, sin padding: >> http://pastehtml.com/view/5t45dvt.html >> _______________________________________________ >> Lista de distribución Ovillo >> Para escribir a la lista, envia un correo a Ovillo@lists.ovillo.org >> Puedes modificar tus datos o desuscribirte en la siguiente dirección: >> http://lists.ovillo.org/mailman/listinfo/ovillo >> > > > _______________________________________________ Lista de distribución Ovillo Para escribir a la lista, envia un correo a Ovillo@lists.ovillo.org Puedes modificar tus datos o desuscribirte en la siguiente dirección: http://lists.ovillo.org/mailman/listinfo/ovillo