X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Footer Div overlapping Content Div (https://forum.x-cart.com/showthread.php?t=52051)

MikeBrum 01-30-2010 08:18 AM

Footer Div overlapping Content Div
 
I've got a problem with my footer and can't figure out how to fix. The footer does two different things.

1. On pages where info is relatively medium amount, footer leaves gap.

2. On pages where info is relatively medium amount, footer overlaps left-bar.

3. On pages where info is relatively large, footer overlaps bottom area of content (covering up info at bottom of STATIC page).

I have a repeating background (1000px x 1px) in content.
I have a fixed image for the footer.

Click on any page to see problem.
Link to page: http://67.20.92.91/store/home.php

Code from AltSkin.css


#page-container {
margin: 0px auto;
width: 1000px;
}

#content-container {
padding-bottom: 0px;
margin-top: 153px;
}

#content-container2 {
padding-bottom:0px;
margin-bottom:0px;
}

#left-bar {
width: 170px;
margin: 120px 0px 0px 80px;
}

#center-main {
padding: 0px 80px 0px 80px;
margin:0px 0px 0px 200px;
}

#center {
background:url(images/fashion_mosaic/bg-repeat-center.png) repeat-y top center;
}

#center-main h1 {
color:#eb9b11;
}

#header {
border-top: 0px solid #516e99;
top: 0px;
height:223px;
width:1000px;
margin-left:auto;
margin-right:auto;
background:url(images/fashion_mosaic/bg.jpg) no-repeat top center;
}

#footer {
background-color:#291f16;
width:1000px;
height: 154px;
background:url(images/fashion_mosaic/bg-footer.jpg) no-repeat center;
}

ARW VISIONS 01-30-2010 12:07 PM

Re: Footer Div overlapping Content Div
 
#content-container {
padding-bottom: 0px;
margin-top: 153px;
}
make bottom padding equal to height of the footer...

MikeBrum 01-30-2010 01:46 PM

Re: Footer Div overlapping Content Div
 
Quote:

Originally Posted by Ashley
#content-container {
padding-bottom: 0px;
margin-top: 153px;
}
make bottom padding equal to height of the footer...


Thanks Ashley, but I tried this and it did not work for the pages where there is very little content. I am working on a 21" monitor and when I maximize the browser window, the footer is locked at the bottom as it should be, but then there is large gap between between footer and content-container.

Do I need to define some container heights as 100% ?

Here are some links to pages with a 'gap' in the background.
http://67.20.92.91/store/cart.php
http://67.20.92.91/store/cart.php?mode=checkout

Thank you for your time.

ARW VISIONS 01-30-2010 01:50 PM

Re: Footer Div overlapping Content Div
 
the footer has absolute positioning so I will be at the bottom.

ARW VISIONS 01-30-2010 01:52 PM

Re: Footer Div overlapping Content Div
 
yes, make content container 100%, try it. Not sure tho.

MikeBrum 01-30-2010 03:16 PM

Re: Footer Div overlapping Content Div
 
Quote:

Originally Posted by Ashley
yes, make content container 100%, try it. Not sure tho.


Thanks again Ashley, but that didn't work either.

I tried moving the background callout to the content-container2. That seems to work BUT, now I can't get it centered.

Check out results here, you will see background now extends all the way to footer on every page, without overlap, but it's stuck on the left side.
http://67.20.92.91/store/Custom_Features.html

#content-container2 {
background:url(images/fashion_mosaic/bg-repeat-center.png) repeat-y top center;
margin-left:auto;
margin-right:auto;
}



Any ideas on the centering?

ARW VISIONS 01-30-2010 03:43 PM

Re: Footer Div overlapping Content Div
 
put it back to the container and I'll take a look

MikeBrum 01-30-2010 04:19 PM

Re: Footer Div overlapping Content Div
 
Ok, I moved it back to where I had it originally:

http://67.20.92.91/store/cart.php

#center {
/* .menu-dialog .content a:link, .menu-dialog .content a:visited, .menu-dialog .content a:link { */
background:url(images/fashion_mosaic/bg-repeat-center.png) repeat-y top center;
}


Still trying to try some things too, but so far, nothing has worked.

ARW VISIONS 01-30-2010 04:30 PM

Re: Footer Div overlapping Content Div
 
put this on content-container not content-container2

background:url(images/fashion_mosaic/bg-repeat-center.png) repeat-y top center;

take it off center

MikeBrum 01-30-2010 05:13 PM

Re: Footer Div overlapping Content Div
 
Quote:

Originally Posted by Ashley
put this on content-container not content-container2

background:url(images/fashion_mosaic/bg-repeat-center.png) repeat-y top center;

take it off center


Thanks!!! That worked! I really appreciate your help on this and taking the time! All this time I've been putting it in the wrong container! So here is what worked, in case someone else needs help in the future:


#page-container {
margin: 0px auto;
width: 1000px;
}
#content-container {
padding-bottom: 152px;
margin-top: 153px;
height:100%;
background:url(images/fashion_mosaic/bg-repeat-center.png) repeat-y top center;
}
#content-container2 {
}

#left-bar {
width: 170px;
margin: 120px 0px 0px 80px;
}
#center-main {
padding: 0px 80px 0px 80px;
margin:0px 0px 0px 200px;
}
#center {
/* .menu-dialog .content a:link, .menu-dialog .content a:visited, .menu-dialog .content a:link { */
}

#center-main h1 {
color:#eb9b11;
}

#header {
border-top: 0px solid #516e99;
top: 0px;
height:223px;
width:1000px;
margin-left:auto;
margin-right:auto;
background:url(images/fashion_mosaic/bg.jpg) no-repeat top center;
}
#footer {
background-color:#291f16;
width:1000px;
height: 154px;
background:url(images/fashion_mosaic/bg-footer.jpg) no-repeat center;
}
#header .line1 {
margin: 0px;
padding: 0px;
height: 170px;
}
#header .line1 .logo {
position: absolute;
left: 0px;
top: 31px;
height: 50px;
width: 228px;
}


All times are GMT -8. The time now is 01:15 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.