This is the code I have for producing a div that is 100% the width of the content area, and has a thin grey border around it. Inside it has a bunch of inputs. If you notice, each input has a specified size. It works perfectly if your screen is exactly the same size as mine and your browser isn't even slightly minimized. When either of those things happen, the inputs will render below the labels, and the form gets confusing.
I can't figure out a way to make the width of those text-boxes dynamic, so that the text box fits the width remaining in the parent DIV after label.
<div class="text_container_border">
Foobar Label: <input name="foobar_1" size="60" type="text" class="hidden_textfield" value=""/>
<br />
Foobar Label 2: <input name="foobar_2" size="60" type="text" class="hidden_textfield" value=""/>
<br />
Foobar Label 3: <input name="foobar_3" size="60" type="text" class="hidden_textfield" value=""/>
<br />
Small Foobar: <input name="small_foobar" size="20" type="text" class="hidden_textfield" value=""/>
Smaller Foobar: <input maxlength="14" name="smaller_foobar" size="14" type="text" class="hidden_textfield" value=""/>
Smallest Foobar: <input maxlength="10" name="smallest_foobar" size="35" type="text" class="hidden_textfield" value=""/>
</div>