/    Sign up×
Community /Pin to ProfileBookmark

ie6 footer div spaing trouble

everything looks fine in IE7 and FF but in IE6 my footer div has a gap

[URL=”www.team-xfr.com/images/ie6-footer.jpg”]footer with spacing image[/URL]

im not sure what is casuing this.. i have no margins or padding on the footer or content container

[QUOTE]

html

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd“>
<html xmlns=”http://www.w3.org/1999/xhtml“>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>The Blissful Boutique</title>
<link href=”css/ecommerce-css-stylesheet2.css” rel=”stylesheet” type=”text/css” />
<script type=”text/javascript”>
<!–
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf(“#”)!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf(“?”))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//–>
</script>
</head>

<body onload=”MM_preloadImages(‘images/e-commerce/side-menu-images/glassware-over.gif’,’images/e-commerce/side-menu-images/tabletop-over.gif’,’images/e-commerce/side-menu-images/cookbooks-over.gif’,’images/e-commerce/side-menu-images/utensils-over.gif’,’images/e-commerce/side-menu-images/linens-over.gif’,’images/e-commerce/side-menu-images/aprons-over.gif’,’images/e-commerce/side-menu-images/serving-over.gif’,’images/e-commerce/side-menu-images/gourmet-over.gif’)”>
<!– start wrapper –>
<div id=”outer-wrapper”>

<!– start wrapper –><div id=”wrapper”>

<!– start top menu –><div id=”top-menu”>

<ul>
<li>

HOME</li>
<li><a href=”online-policies.html” target=”_self”>ONLINE POLICIES</a></li>
<li><a href=”shipping.html” target=”_
self”>SHIPPING</a></li>
<li><a href=”contact.html” target=”_self”>CONTACT</a></li>
</ul>

<!– end top-menu –></div>

<!– start header –><div id=”header”><!– end header –></div>

<!– start content-container –><div id=”content-container”>

<!– start side-menu –><div id=”side-menu”>

<p><a href=”#” onmouseout=”MM_swapImgRestore()” onmouseover=”MM_swapImage(‘glassware’,”,’images/e-commerce/side-menu-images/glassware-over.gif’,1)”><img src=”images/e-commerce/side-menu-images/glassware-off.gif” alt=”glassware link” name=”glassware” width=”100″ height=”39″ border=”0″ id=”glassware” /></a>

<br />
<a href=”#” onmouseout=”MM_swapImgRestore()” onmouseover=”MM_swapImage(‘tabletop’,”,’images/e-commerce/side-menu-images/tabletop-over.gif’,1)”><img src=”images/e-commerce/side-menu-images/tabletop-off.gif” alt=”tabletop link” name=”tabletop” width=”71″ height=”12″ border=”0″ id=”tabletop” /></a><br />
<a href=”#” onmouseout=”MM_swapImgRestore()” onmouseover=”MM_swapImage(‘cookbooks’,”,’images/e-commerce/side-menu-images/cookbooks-over.gif’,1)”><img src=”images/e-commerce/side-menu-images/cookbooks-off.gif” alt=”cookbooks link” name=”cookbooks” width=”100″ height=”12″ border=”0″ id=”cookbooks” /></a><br />
<a href=”#” onmouseout=”MM_swapImgRestore()” onmouseover=”MM_swapImage(‘utensils’,”,’images/e-commerce/side-menu-images/utensils-over.gif’,1)”><img src=”images/e-commerce/side-menu-images/utensils-off.gif” alt=”utensils link” name=”utensils” width=”100″ height=”12″ border=”0″ id=”utensils” /></a><br />
<a href=”#” onmouseout=”MM_swapImgRestore()” onmouseover=”MM_swapImage(‘linens’,”,’images/e-commerce/side-menu-images/linens-over.gif’,1)”><img src=”images/e-commerce/side-menu-images/linens-off.gif” alt=”linens link” name=”linens” width=”100″ height=”12″ border=”0″ id=”linens” /></a><br />
<a href=”#” onmouseout=”MM_swapImgRestore()” onmouseover=”MM_swapImage(‘aprons’,”,’images/e-commerce/side-menu-images/aprons-over.gif’,1)”><img src=”images/e-commerce/side-menu-images/aprons-off.gif” alt=”aprons link” name=”aprons” width=”100″ height=”12″ border=”0″ id=”aprons” /></a><br />
<a href=”#” onmouseout=”MM_swapImgRestore()” onmouseover=”MM_swapImage(‘serving’,”,’images/e-commerce/side-menu-images/serving-over.gif’,1)”><img src=”images/e-commerce/side-menu-images/serving-off.gif” alt=”serving link” name=”serving” width=”100″ height=”16″ border=”0″ id=”serving” /></a><br />
<a href=”#” onmouseout=”MM_swapImgRestore()” onmouseover=”MM_swapImage(‘gourmet’,”,’images/e-commerce/side-menu-images/gourmet-over.gif’,1)”><img src=”images/e-commerce/side-menu-images/gourmet-off.gif” alt=”gourmet link” name=”gourmet” width=”100″ height=”12″ border=”0″ id=”gourmet” /></a></p>

<!– end side-menu –></div>

<!– start category menu –><div id=”menu”>

<ul>
<li><a href=”#”>DECORATE</a></li>
<li class=”menu-dot”>•</li>
<li class=”blue-menu-text”>ENTERTAIN</li>
<li class=”menu-dot”>•</li>
<li><a href=”#”>GARDEN</a></li>
<li class=”menu-dot”>•</li>
<li><a href=”#”>CREATE</a></li>
<li class=”menu-dot”>•</li>
<li><a href=”#”>RELAX</a></li>
<li class=”menu-dot”>•</li>
<li><a href=”#”>LUXURIATE</a></li>
<li class=”menu-dot”>•</li>
<li><a href=”#”>DRESS</a></li>
</ul>

<!– end category menu –></div>

<!– ****** START CW CONTAINER ****** –><div id=”cw-container”>

<!– ****** END CW CONTAINER ****** –></div>

<!– end content-container –></div>

<!– start footer –><div id=”footer”><!– end footer –></div>

<!– end wrapper –></div>

<!– end outer-wrapper –></div>

</body>
</html>

[/QUOTE]

[QUOTE]

css

body {
background-image: url(../images/e-commerce/background.jpg);
}
#outer-wrapper {
height: 800px;
width: 853px;
background-image: url(../images/e-commerce/wrapper-bg.gif);
margin-right: auto;
margin-left: auto;
background-repeat: no-repeat;
}
#wrapper {
width: 780px;
margin-left: 36px;
float: left;
display: inline;
background-repeat: no-repeat;
}
#header {
background-image: url(../images/e-commerce/header2.jpg);
height: 300px;
width: 780px;
display: block;
float: left;
}
#top-menu {
background-image: url(../images/e-commerce/top-menu-bg.gif);
height: 16px;
width: 365px;
margin-left: 50px;
margin-top: 0px;
margin-bottom: 0px;
padding-top: 52px;
}

#top-menu ul {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #46291F;
font-weight: bold;
list-style-type: none;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 40px;
padding: 0px;
margin-top: 0px;
}

#top-menu li {
float: left;
padding-right: 5px;
padding-left: 5px;
}
#top-menu li a {
text-decoration: none;
color: #46291F;
}
#top-menu li a:hover {
color: #8faeab;
}
#content-container {
background-image: url(../images/e-commerce/content-bg.jpg);
width: 780px;
float: left;
padding-bottom: 25px;
}
#content-category-images {
width: 690px;
margin-right: auto;
margin-left: auto;
}
#footer {
background-image: url(../images/e-commerce/footer-bg.gif);
height: 44px;
width: 780px;
float: left;
}
#side-menu {
background-image: url(../images/e-commerce/side-menu-bg.gif);
float: left;
height: 425px;
width: 203px;
margin-left: 56px;
display: inline;
text-align: center;
}
#side-menu img {
margin-top: 20px;
}

.blue-menu-text {
color: #93bebc;
}

#menu {
background-image: url(../images/e-commerce/menu-bg.gif);
height: 40px;
width: 494px;
float: left;
margin-left: 1px;
}
#menu ul {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
list-style-type: none;
padding: 0px;
color: #FDFDFB;
font-weight: bold;
margin-top: 7px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 17px;
}
#menu li {
float: left;
padding-right: 2px;
padding-left: 2px;
}
.menu-dot {color: #886e5e}#menu a {
text-decoration: none;
color: #FAF9F4;
}
#menu a:hover {
color: #8faeab;
}

#cw-container {
background-color: #00FF00;
height: 200px;
width: 500px;
float: left;
margin-left: 7px;
margin-top: 25px;
}

[/QUOTE]

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@ellisglJan 04.2008 — try clear:both in your footer css
Copy linkTweet thisAlerts:
@MrMJSauthorJan 04.2008 — i tried that... still the same ?

not sure why this post is so wide either ? sorry
Copy linkTweet thisAlerts:
@MrMJSauthorJan 04.2008 — i fixed it.. i had the footer div with a background footer image, i removed that and just inserted the image in the div.. must be something IE6 didnt like.
Copy linkTweet thisAlerts:
@CentauriJan 04.2008 — There is something about empty divs and html comments with IE6, but I can't remember it or find a link to an explanation at the moment. Removing the html comment from above the footer div would have fixed it as well.
Copy linkTweet thisAlerts:
@MrMJSauthorJan 04.2008 — thank you for the help
×

Success!

Help @MrMJS spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...