![]() | | ||||||||
| | #1 |
| Advanced Warrior War Room Member Join Date: Feb 2008 Location: Chicago, IL
Posts: 660
Thanks: 10
Thanked 17 Times in 9 Posts
|
I've got a very simple landing page that does not display properly in IE6. The "absolute div" is pushed to the right of the "center div" when it shouldn't be. If I remove the floats, the absolute div displays fine, but I'm using "float left" to align the 3 divs right next to each other. Everything looks fine in FF, IE8, Safari, etc. Just can't get older versions of IE to work. Can anyone good with CSS help me figure out how to fix this? Thanks! Code: <style type="text/css">
<!--
body {
background-color: #372d2b;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
#container {
width: 800px;
margin-right: auto;
margin-left: auto;
height: 550px;
padding: 0px;
margin-top: 0px;
margin-bottom: 0px;
}
#button {
position: absolute;
padding-top: 295px;
height: 119px;
width: 418px;
padding-left: 75px;
}
#left {
float: left;
}
#center {
float: left;
}
#right {
height: 416px;
}
-->
</style>
</head>
<body>
<div id="container">
<div id="button"><a href="go.php"><img src="images/button.jpg" width="418" height="119" border="0" /></a></div>
<div id="left"><img src="images/left_panel.jpg" width="199" height="416" /></div>
<div id="center"><img src="images/center_panel.jpg" width="302" height="416" /></div>
<div id="right"><img src="images/right_panel.jpg" width="299" height="416" /></div>
</div>
</body> |
| | |
| | |
| | #2 |
| Senior Warrior Member War Room Member Join Date: Sep 2008 Location: Honolulu, Hawaii, USA & Montreal Canada
Posts: 2,218
Blog Entries: 1 Thanks: 759
Thanked 724 Times in 505 Posts
|
I feel your pain Ryan, the "Floating DIV" bug with IE6 is well-documented and is one of the two major pains in supporting IE6 (the other one being the lack of support for transparent PNG files, or at least 24-bit ones). These links may either help or confuse the situation: IE Float model and the reality | CSS Class Internet Explorer Float/Margin Bugs Good luck with it! Bill |
| | |
| | #3 |
| Advanced Warrior War Room Member Join Date: Feb 2008 Location: Chicago, IL
Posts: 660
Thanks: 10
Thanked 17 Times in 9 Posts
|
Excellent - this was helpful. Thanks for the links!
|
| | |
| | |
| | #4 |
| Laurence Samuels War Room Member Join Date: Oct 2009 Location: Orlando, FL - USA
Posts: 357
Thanks: 63
Thanked 44 Times in 41 Posts
|
great articles, thanks for posting.
|
| Orlando Web Design: This 'aint your typical web co. Tax Deed Foreclosures : Build $1 million of real estate wealth. I will show you how Relationship Stories: Avoid the Altar.com-A million reasons to avoid marriage Snowshoe Rentals - acne wash - acnefree | |
| | |
| | #5 | |
| Scott Blanchard War Room Member Join Date: Jul 2009 Location: Birmingham, AL
Posts: 803
Blog Entries: 1 Thanks: 122
Thanked 220 Times in 103 Posts
|
Have you tried specifying a doctype to force the browser out of quirks mode? If not, add this to the top of your template? Quote:
| |
| *********WARRIOR SPECIALS************ CLICKBUMP SEO! >>> $17 (regular price $37) CLICKBUMP5 THEME FRAMEWORK + JUMPSTART PRO! >>> $27 (regular price $47) Example sites: Local Biz | Review Site | Adsense Site | Silo'd Authority | ||
| | |
| | #6 |
| Warrior Member Join Date: Jan 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
Have you tried to use your code in 800x600? try to include body width:100%. I'm not sure if it will work though
|
| | |
| | |
![]() |
|
| Tags |
| divs, float or absolute, ie6 |
| Thread Tools | |
| |
![]() |