Say, I have the following unordered list. The button has width: auto
. How do I style the elements, so #textField
would stretch as much as possible, so the width of #textField
and the button would add up to 100%?
<ul>
<li>
<input id="textField" type="text" /><input type="button" />
</li>
</ul>