Ultimate Web Site Drop Down Menu Forum

Ultimate Web Site Drop Down Menu Forum (http://www.udm4.com/forum/index.php)
-   CSS and HTML (http://www.udm4.com/forum/forumdisplay.php?f=8)
-   -   CSS Floating wrong in IE...why? (http://www.udm4.com/forum/showthread.php?t=189)

paulj 08-10-2007 09:10 PM

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...

07-30-2008 04:49 PM

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.


All times are GMT. The time now is 05:44 PM.

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