If I replace the span with a div, so that I have
<div style="width:200px; background:red">
<div style="float:right">
<img src="images/ball_64x62.jpg
<img src="images/ball_64x62.jpg
</div>
</div>
I see the exact same thing as with the span, i.e., I get the gap between the floated images. So I guess it's not a span problem but a problem assigning float to a block. Still, it seems that both these should work so my question now is why both a span and a div put a gap between the floated images.
I'm not sure what you mean about the clear. Where would you like me to put it?
Main Topics
Browse All Topics





by: zatara1Posted on 2009-11-01 at 20:49:50ID: 25717118
Spans create a hard return in the HTML document and the images are trying to follow that, but the float is throwing it off. I would try to change the span to a div and then make sure you clear: both to get the image to move down.
-Z