1 Replies - 7578 Views - Last Post: 04 February 2009 - 10:25 PM

#1 Senseika  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 66
  • Joined: 09-January 09

How to make the background image stay centered while scrolling

Posted 04 February 2009 - 10:19 PM

I do not know how to make my background image scroll with the page so whereever on the page you look at, the background image is always centered on it.

I dont really know how i would put just source code here tho (its a css stylesheet plus like 5 or 6 different pages)
Is This A Good Question/Topic? 0
  • +

Replies To: How to make the background image stay centered while scrolling

#2 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5355
  • View blog
  • Posts: 27,314
  • Joined: 10-May 07

Re: How to make the background image stay centered while scrolling

Posted 04 February 2009 - 10:25 PM

Use the following example in your css property.
body 
{ 
background-image: url(stars.gif); 
background-attachment: fixed
}

Source Link.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1