I have the following code but the image is wrapping below the input box. What am I doing wrong?
<input type=text name='test" />
<div style="float:left"><img src="test.jpg" /></div>
I have the following code but the image is wrapping below the input box. What am I doing wrong?
<input type=text name='test" />
<div style="float:left"><img src="test.jpg" /></div>
the <div>
tag it's a block, it mean have a new line before and after, try to use a <span>
<span ><img src="test.jpg" /></span>
You want this instead.
<input type="text" name="test" style="float:left" />
<div><img src="test.jpg" /></div>
It also works just as well if you remove the <div>