I want to do the following
(we are inside a fix width div)
<input text><img>
if I set 100% width to the text, the img goes newline.
EDIT: I tried:
<div style="width: auto;">
<input style="width: 100%; float: left;" />
</div>
<img style="float: right;" alt="smiles" src="a.gif" width="21" height="21" />