If you want a cross-browser decision you can use table
<table>
<tr>
<td>some text</td>
<td><input type="text" style="width:100%" /></td>
<td><button value="click me" /></td>
</tr>
</table>
If you can't use table it would be more difficult.
For instance, if you know exactly the width of the some text you can try this way:
<div style="padding:0px 60px 0px 120px;">
<div style="width:120px; float:left; margin:0px 0px 0px -120px;">some text</div>
<input type="button" style="width:50px; float:right; margin:0px -55px 0px 0px;" />
<input type="text" style="width:100%;" />
</div>