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)
-   -   Background Positioning - help! simple one i'm sure! (https://forum.x-cart.com/showthread.php?t=56505)

obaluba2 11-10-2010 01:39 PM

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

:-)

obaluba2 11-10-2010 02:03 PM

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

xplorer 11-10-2010 09:57 PM

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.

obaluba2 11-10-2010 10:06 PM

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!

xplorer 11-10-2010 10:33 PM

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".

obaluba2 11-10-2010 11:07 PM

Re: Background Positioning - help! simple one i'm sure!
 
that's perfect, worked a charm! thankyou so much!


All times are GMT -8. The time now is 11:27 AM.

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