Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Footer Div overlapping Content Div

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-30-2010, 08:18 AM
 
MikeBrum MikeBrum is offline
 

Advanced Member
  
Join Date: May 2003
Location: Morro Bay, Ca
Posts: 59
 

Default 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;
}
__________________
Toobs.com

X-Cart version 4.3.1
PHP: 5.2.14
MySQL: 5.1.47
Reply With Quote
  #2  
Old 01-30-2010, 12:07 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default 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
Reply With Quote
  #3  
Old 01-30-2010, 01:46 PM
 
MikeBrum MikeBrum is offline
 

Advanced Member
  
Join Date: May 2003
Location: Morro Bay, Ca
Posts: 59
 

Default 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.
__________________
Toobs.com

X-Cart version 4.3.1
PHP: 5.2.14
MySQL: 5.1.47
Reply With Quote
  #4  
Old 01-30-2010, 01:50 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Footer Div overlapping Content Div

the footer has absolute positioning so I will be at the bottom.
__________________
xcart 5.1.2
Reply With Quote
  #5  
Old 01-30-2010, 01:52 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Footer Div overlapping Content Div

yes, make content container 100%, try it. Not sure tho.
__________________
xcart 5.1.2
Reply With Quote
  #6  
Old 01-30-2010, 03:16 PM
 
MikeBrum MikeBrum is offline
 

Advanced Member
  
Join Date: May 2003
Location: Morro Bay, Ca
Posts: 59
 

Default 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?
__________________
Toobs.com

X-Cart version 4.3.1
PHP: 5.2.14
MySQL: 5.1.47
Reply With Quote

The following user thanks MikeBrum for this useful post:
Ashley (01-30-2010)
  #7  
Old 01-30-2010, 03:43 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Footer Div overlapping Content Div

put it back to the container and I'll take a look
__________________
xcart 5.1.2
Reply With Quote
  #8  
Old 01-30-2010, 04:19 PM
 
MikeBrum MikeBrum is offline
 

Advanced Member
  
Join Date: May 2003
Location: Morro Bay, Ca
Posts: 59
 

Default 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.
__________________
Toobs.com

X-Cart version 4.3.1
PHP: 5.2.14
MySQL: 5.1.47
Reply With Quote
  #9  
Old 01-30-2010, 04:30 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default 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
Reply With Quote
  #10  
Old 01-30-2010, 05:13 PM
 
MikeBrum MikeBrum is offline
 

Advanced Member
  
Join Date: May 2003
Location: Morro Bay, Ca
Posts: 59
 

Default 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;
}
__________________
Toobs.com

X-Cart version 4.3.1
PHP: 5.2.14
MySQL: 5.1.47
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:08 PM.

   

 
X-Cart forums © 2001-2020