Forum Moderators: not2easy

Message Too Old, No Replies

Problem in IE

Darn floats!

         

HoagieKat

12:12 pm on Mar 28, 2006 (gmt 0)

10+ Year Member



I'm having a problem with IE (who isn't). Sometimes text fails to appear in a DIV if that DIV has an image in it. The image is in a div with a float property.


<div id='container'>
<div id='leftText'>The text goes in here</div>
<div id='image'><img src='image.jpg' /></div>
</div>

container is just a container div, leftText is floated left and contains the text, image div is floated right. The text in 'leftText' disappears in IE, unless you press the refresh button or scroll the page up and down, then you can see it ok! Any idea what's going on here and how to fix it?

It appears to be ok in FireFox, Safari, Opera, etc... anything that's compliant basicly!

Thanks

Gav

Old_Honky

1:02 pm on Mar 28, 2006 (gmt 0)

10+ Year Member Top Contributors Of The Month



Just a wild guess but are you using this more than once on the page?

If so only the first ID will be valid as you should only use an ID once per page. Perhaps that's the problem, if so use "class" instead of "ID".