Results 1 to 3 of 3

Thread: Background Image Keeps Jumping Positions

  1. #1
    Join Date
    Jan 2009
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Background Image Keeps Jumping Positions

    Hey all, yet another question from the newbie.

    As my site goes from page to page, the background jumps positions. I do not want it fixed per se, but I do want it to stay still, unless I am scrolling up or down. I hope I made myself clear.

    http://nageckos.webs.com/index.htm

    Code:
    <style type="text/css">
      body {
      background-image: url("/images/bg2.jpg");
      background-position: center;
      background-repeat: repeat;
    background-color: #ffffff;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 5px;
    }
    </style>
    TIA!!

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    Hi Sarin!
    I am not really sure if it will work, but have you tried something like:
    background-position: center -400px;
    where the -400px would be the y coordinate that can be changed to whatever is suitable.

  3. #3
    Join Date
    Jan 2009
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Works! Thanks a bunch!!

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
  •