Results 1 to 2 of 2

Thread: How do I do non-scrolling background?

  1. #1
    Join Date
    May 2009
    Location
    Somewhere in the US
    Posts
    7

    How do I do non-scrolling background?

    OK, this is a little hard to explain, and I don't think that my thread title does it justice, but I'm gonna give it a go anyway. How do I set an image as the background of a webpage and have it so that it doesn't tile, it is just displayed on the background of the page, but also has it where, if the viewer scrolls, it doesn't scroll the image too. The image stays stationary in the back. How would I do that?

    Thanks in advance!

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    background-repeat:no-repeat;
    background-position: fixed;

    http://www.w3schools.com/css/pr_background-position.asp
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Similar Threads

  1. Background Check Search
    By Allenhan in forum General Questions
    Replies: 0
    Last Post: 29 Jun 2007, 01:39 AM
  2. div background image scrolling when it shouldn't
    By PaulThomas in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 14 Jun 2007, 03:14 AM

Posting Permissions

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