Go Back   Ultimate Web Site Drop Down Menu Forum > Web Development > CSS and HTML
Register FAQ Members List Calendar Today's Posts

Reply
Thread Tools Display Modes
Unread 08-10-2007, 10:10 PM
paulj paulj is offline
Senior Member
Join Date: Jul 2007
Posts: 521
  #1  
Default CSS Floating wrong in IE...why?

Hello.I got an issue. What exactly is wrong here?Image: http://i38.photobucket.com/albums/e1...tan986/wtf.jpg The top image is the from FireFox, and the bottom is from IE. Why does the div in FF actually float over the box, but in IE, it's all contained within the white box? The...
Reply With Quote
Unread 07-30-2008, 05:49 PM
jtg
Posts: n/a
  #2  
Default

Firefox and IE calculate the height of a box differently. When Firefox's contents is "floating" (and thereby not "within" the box) it reduces the box down to only its margin and padding. IE, on the other hand, still counts the "floating" contents as being "within." At least, this is my diagnosis without having seen any of your code.

Edit the parent div CSS to include a "min-height: xxxxx" This handy command is ignored by IE, but will bully Firefox into making that box at least whatever height you dictate.
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 01:46 AM.


Powered by vBulletin® Version 3.0.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.