Previous Message
Next Message

RE: [css-d] Repost: Flowing images in floated DIVS break in Opera

Sent by Bob Osola on 16 July 2002 15:03


> I learnt the hard way that floated 
> elements require a width and Opera doesn't like that it's missing. Add
that 
> to your div.float and I think you'll be fine.

Thanks to Big John & Pandion for replying. Pandion hit it on the nail.
Opera 6 requires widths to be specified before floated divs will flow
properly. As my page is created in PHP and can have different sized
images, I did a hybrid solution of "<img class='float' style='width:" .
$imgWidth . "px;'>. i.e. set the general DIV attributes up in the CSS
file with locally-specified widths in the HTML. Works a treat. Thanks,
guys :-)

Regds, Bob Osola
Previous Message
Next Message

Message thread: