Log in

View Full Version : background image with a streatched page



isaac_cm
08-26-2007, 01:45 PM
Hello,
I use in my design a background image for the left panel on the site , the problem is some pages in my design is taller than other , how I can be sure that the background image will always fill the left panel no matter the height

thanks

yh786515
08-26-2007, 05:02 PM
when you add a background in you html page, it repeats and that's what causes the problem. To force it to stay as is add this code in the head section:

<style>
body { background-repeat:no-repeat; }

</style>

that should fix the problem

Source: http://www.throughsearch.com

isaac_cm
08-26-2007, 07:13 PM
sorry I did not was clear I need to detect the current user resolution used if it is 800x600 the background is behind my navigation correctly but if the resolution is 1024x768 the background is still on the far left of the page but the navigation menu + content menu is on the center

I need to make the background always behind the nav menu automatically

attached is an image of the problem

thanks

isaac_cm
08-27-2007, 12:12 AM
I am using this css for the background image for nav bar

body {
background-image: url(../images/page_bottom.jpg);
background-position: left;
background-repeat: repeat-y;
}