| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
Footer Div overlapping Content Div | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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; } |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Footer Div overlapping Content Div
#content-container {
padding-bottom: 0px; margin-top: 153px; } make bottom padding equal to height of the footer...
__________________
xcart 5.1.2 |
|||||||||
#3
|
|||||||
|
|||||||
Re: Footer Div overlapping Content Div
Quote:
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. |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Footer Div overlapping Content Div
the footer has absolute positioning so I will be at the bottom.
__________________
xcart 5.1.2 |
|||||||||
#5
|
|||||||||
|
|||||||||
Re: Footer Div overlapping Content Div
yes, make content container 100%, try it. Not sure tho.
__________________
xcart 5.1.2 |
|||||||||
#6
|
|||||||
|
|||||||
Re: Footer Div overlapping Content Div
Quote:
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? |
|||||||
|
#7
|
|||||||||
|
|||||||||
Re: Footer Div overlapping Content Div
put it back to the container and I'll take a look
__________________
xcart 5.1.2 |
|||||||||
#8
|
|||||||
|
|||||||
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. |
|||||||
#9
|
|||||||||
|
|||||||||
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
__________________
xcart 5.1.2 |
|||||||||
#10
|
|||||||
|
|||||||
Re: Footer Div overlapping Content Div
Quote:
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; } |
|||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|