I've been wanting web pages that nicely embed images among text. The
way I typically do this at the moment is to sprinkle my IMGs through
the text as floats, alternating between float: left and float: right.
Mostly I test with IE 6 and Firefox 1. I'm having a hard time stopping
ugly empty gaps appearing in the text.
If I use clear: both then, if the browser window is too wide, the text
takes up less vertical space than the images, and I end up with ugly
vertical gaps in the text.
If I use clear: none then, if the browser window is too narrow, there
are still ugly vertical gaps in the text where floats are on the left
and the right and the browser decides there's insufficient horizontal
space in between them to render text too.
What would work well is if, whatever the browser width, floats would
come on each side of the page except if they leave no room to render
any of the text in between.
How do other people deal with this sort of situation? Really I just
want my images to float as far from the actual IMG as they need to to
allow some text to appear on each line. But, I find that my current
pages leave no vertical gaps in the text only within some range of
browser window widths.
-- Mark