I have a table with many columns. One of the columns contains a cell that has 'input' and 'img' elements in it. When the table has plenty of room the 'input' and 'img' elements appear on the same line. When the table gets squished it the two elements end up on different lines. I would like to ensure that these two elements never end up on two lines.
Here is my HTML:
<td>
<input type="text" /><a href="#"><img src="..." /></a>
</td>
I have tried using "float:left" and "float:right" on the 'img' element. Doing so didn't change the fact that the 'img' element was on the line below. It only changed whether the element was on the left or right side of the second line. Maybe I'm missing something?