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

Background Positioning - help! simple one i'm sure!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-10-2010, 01:39 PM
 
obaluba2 obaluba2 is offline
 

Senior Member
  
Join Date: Sep 2006
Posts: 152
 

Default Background Positioning - help! simple one i'm sure!

Hi,

I've got a 4.1.1 installation that I'm working on and I'm trying to make the background image sit on the absolute bottom of each page..

I am pulling my hair out with this as I dont understand why it won't work!

Here's my CSS:

HTML,BODY {
height: 100%;
MARGIN: 0px;
PADDING: 0px;
BACKGROUND-COLOR: #980065;
background-image: url(/store/skin1/images/bg2.jpg);
background-position:bottom;
background-repeat: no-repeat;
}

It seems to me it doesnt like the height: 100% as if i change it to 1500px or similar it does move, but obviously this is no good as all my pages are different sizes!

It just resizes to the screen resolution size which looks very strange when you scroll further down!

Any help would be hugely appreciated!!

thanks

__________________
4.0.1.18 & 4.1.6 & 4.1.9 & 4.1.11 & 4.2.2 & 4.3.2, 4.6.1
Reply With Quote
  #2  
Old 11-10-2010, 02:03 PM
 
obaluba2 obaluba2 is offline
 

Senior Member
  
Join Date: Sep 2006
Posts: 152
 

Default Re: Background Positioning - help! simple one i'm sure!

I've tried this thread too, but still cant get it to work!

http://forum.x-cart.com/showthread.php?t=51119&highlight=background
__________________
4.0.1.18 & 4.1.6 & 4.1.9 & 4.1.11 & 4.2.2 & 4.3.2, 4.6.1
Reply With Quote
  #3  
Old 11-10-2010, 09:57 PM
  xplorer's Avatar 
xplorer xplorer is offline
 

X-Cart team
  
Join Date: Jul 2004
Posts: 925
 

Default Re: Background Positioning - help! simple one i'm sure!

Hi!

Are you trying to display the image at the bottom of a page? Or at the bottom of a browser window? Setting the body height to 100% resizes it to the window height, not the total page height.
Reply With Quote
  #4  
Old 11-10-2010, 10:06 PM
 
obaluba2 obaluba2 is offline
 

Senior Member
  
Join Date: Sep 2006
Posts: 152
 

Default Re: Background Positioning - help! simple one i'm sure!

Hi,

I would like it at the bottom of the page not the browser window. So when i scroll to the bottom it's there!

thanks for your reply!
__________________
4.0.1.18 & 4.1.6 & 4.1.9 & 4.1.11 & 4.2.2 & 4.3.2, 4.6.1
Reply With Quote
  #5  
Old 11-10-2010, 10:33 PM
  xplorer's Avatar 
xplorer xplorer is offline
 

X-Cart team
  
Join Date: Jul 2004
Posts: 925
 

Default Re: Background Positioning - help! simple one i'm sure!

Quote:
Originally Posted by obaluba2
I would like it at the bottom of the page not the browser window. So when i scroll to the bottom it's there!

Try to remove "height: 100%" and replace "html, body" with just "body".
Reply With Quote
  #6  
Old 11-10-2010, 11:07 PM
 
obaluba2 obaluba2 is offline
 

Senior Member
  
Join Date: Sep 2006
Posts: 152
 

Default Re: Background Positioning - help! simple one i'm sure!

that's perfect, worked a charm! thankyou so much!
__________________
4.0.1.18 & 4.1.6 & 4.1.9 & 4.1.11 & 4.2.2 & 4.3.2, 4.6.1
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 11:53 AM.

   

 
X-Cart forums © 2001-2020