![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have this webpage where I am getting the dreaded float drop bug in IE. I tried everything in the float drop FAQs online, but nothing can get it working. I have narrowed down the problem though. For some reason the left menu is 195px in IE instead of the 175 specified, meaning that box divs are wider than the div they are contained in so the right one drops. However, I can't figure out how to make the left div equal to only 175px in IE. Any help would be greatly appreciated! The code looks like this (with #contentleft and #contentright both inside #frame): |
#3
| |||
| |||
|
|
[snip CSS code for 3 elements] That code in itself causes no problems in IE at all. Maybe you should post an online example so we can see what you're missing. |
#4
| |||
| |||
|
|
[snip CSS code for 3 elements] That code in itself causes no problems in IE at all. Maybe you should post an online example so we can see what you're missing. The webpage in question is http://www.emoticomm.com. It works in FF, Safari, and Opera, but alas in IE I am getting the float drop. The stylesheet is located at http://www.emoticomm.com/stylesheet.css. Also, I know the CSS is a bit sloppy but it should still work as far as I can tell... |
#5
| |||
| |||
|
|
Alex Krupp wrote: [snip CSS code for 3 elements] That code in itself causes no problems in IE at all. Maybe you should post an online example so we can see what you're missing. The webpage in question is http://www.emoticomm.com. It works in FF, Safari, and Opera, but alas in IE I am getting the float drop. The stylesheet is located at http://www.emoticomm.com/stylesheet.css. Also, I know the CSS is a bit sloppy but it should still work as far as I can tell... The problem is caused by the margin:10px; in combination with float:left; on the coloured divs in the #contentleft. If you want the divs centered, leave out the float:left;. If you want them to the left, there's no use for margin:10px;. Also, you can't have your divs nested inside the <a> elements. a href="index.html" class="menu"><div id="red">Our Product</div></a should be: div id="red"><a href="index.html" class="menu">Our Product</a></div Last but not least, if you ask a question here saying you narrowed down the problem, it's best to not leave out the code that is causing the problem. The code you showed didn't narrow down the problem, it omitted the problem ;-) |
#6
| |||
| |||
|
|
I didn't check his CSS, but should work as well if he uses a Strict doctype. Transitional puts IE6 into Quirks mode. IE <6 is always in Quirks mode. *All* new documents should be using Strict. If he insists on using Transitional, he should apply the Box Model Hack. He should change to HTML since he's not using XHTML properly. |
#7
| |||
| |||
|
|
Transitional puts IE6 into Quirks mode. |
#8
| |||
| |||
|
|
Gus Richter <gusrichter (AT) netscape (DOT) net> wrote: Transitional puts IE6 into Quirks mode. Only if the url is omitted. |
![]() |
| Thread Tools | |
| Display Modes | |
| |