CSS: Float right in IE doesn't work!

  • champi0n
  • Graduate
  • Graduate
  • User avatar
  • Posts: 199

Post 3+ Months Ago

It displays perfect in firefox, but in IE the float area aligns right rather then floats right. (Meaning that the intro text is under the float area leaving a large white space to the left of the float rather then filling it with the text)

Code: [ Select ]
<div style="position: relative; float:right; width:236px;">
<img src="images/bucket.gif" width="236" height="214" alt=""/>
text here
text here
text here
</div>
<div id="title">Introduction</div>
<p>content here</p>
  1. <div style="position: relative; float:right; width:236px;">
  2. <img src="images/bucket.gif" width="236" height="214" alt=""/>
  3. text here
  4. text here
  5. text here
  6. </div>
  7. <div id="title">Introduction</div>
  8. <p>content here</p>
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8399
  • Loc: USA

Post 3+ Months Ago

Just a suggestion. Try a different position, like static for instance. IE interprets position a little bit different than Firefox, or so I learned from experience. I also suggest using an external CSS file. I'm sure you know how to implement those.
  • Attemptor
  • Born
  • Born
  • Attemptor
  • Posts: 1

Post 3+ Months Ago

IE seems not to like the "float" property when it's part of a <div> tag. I had the same problem and moved my "float:right" language to the <table> tag which I had inside my <div>. I think in this example, a person could move it to the <img> tag and it would work.

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 43 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.