Results 1 to 4 of 4

Thread: background image with a streatched page

  1. #1
    Join Date
    Aug 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default background image with a streatched page

    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

  2. #2
    Join Date
    Aug 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  3. #3
    Join Date
    Aug 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  4. #4
    Join Date
    Aug 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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;
    }

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •