Forum Moderators: not2easy
My goal is to have the text box on the left, and the button on the right. I want the text box to fill up whatever space is left over from the button. So as the button grows, the text box shrinks, and vice-versa.
My current implementation is to have Div B (The one containing the button) first in the HTML with a float of right. I then have Div A (The one containing the text field) after that, with a float of left. In IE, this works perfectly. However, in FF Div A does not use all of it's remaining space.
Any suggestions? Thanks!
<table style="width: #px">
<tr>
<td style="width:100%;">
<!-- put your textbox or w/e else here -->
</td>
<td style="width:1%">
<!-- put your button here -->
</td>
</tr>
</table>
the td containing the textbox will expand up until w/e the dynamic width of the button is. The 100% width won't cause the table to expand past w/e you set the width for the table as.