It's frustrating, but I'm stumped and need some help.
I need to arrange 2 form fields inline, with the label above each field. Here is how it should look like in ascii art:
Label 1 Label 2
--------- ---------
| | | |
--------- ---------
Seems simple, right?
<label for=foo>Label 1</label>
<input type=text name=foo id=foo />
<label for=bar>Label 2</label>
<input type=text name=bar id=bar />
This code will produce:
--------- ---------
Label 1 | | Label 2 | |
--------- ---------
To position the labels above the boxes, I added display=block:
<label for=foo style="display:block">Label 1</label>
<input type=text name=foo id=foo />
<label for=bar style="display:block">Label 2</label>
<input type=text name=bar id=bar />
However, after making this change, the labels are positioned correctly but the form fields are no longer inline:
Label 1
---------
| |
---------
Label 2
---------
| |
---------
I've searched everywhere but couldn't find a solution to make the fields display inline. Can someone offer some guidance?