Full Legal Name:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Does anyone here know, or can provide a reference to, a css recipe that
will accomplish this? All the references that I can find introduce
block elements or accomplish vertical positioning of lables, but I want
to do things like this:
Well… first, discover if you have valid XHTML. A label tag does not wrap your form field. It sits next to it and the “for” attribute binds them together.
I give the form field an id to help scope the css so I don’t affect all of the fields throughout an application.
Now just make it happen. You don’t actually do anything with the label… instead you do it to the form elements. Use the display:block; css property to make these block elements, and then the clear:both attribute to force these fields to a new line.