7 Replies - 455 Views - Last Post: 29 October 2010 - 02:51 AM

#1 ladyinblack  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 9
  • View blog
  • Posts: 419
  • Joined: 08-April 09

background image on web page

Posted 26 October 2010 - 12:32 PM

I got a background image, but I want it to remain constant, not move with the page as you scroll up or down. How do I do that?
Is This A Good Question/Topic? 0
  • +

Replies To: background image on web page

#2 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 2935
  • View blog
  • Posts: 7,685
  • Joined: 08-June 10

Re: background image on web page

Posted 26 October 2010 - 02:05 PM

background-position: fixed;, no guarantee that it will work in each and every browser, though.
Was This Post Helpful? 0
  • +
  • -

#3 Lemur  Icon User is offline

  • OpenBSD Head
  • member icon


Reputation: 1120
  • View blog
  • Posts: 3,073
  • Joined: 28-November 09

Re: background image on web page

Posted 26 October 2010 - 03:43 PM

Dormilich is correct on this one, try looking up the property, w3schools has a nice bit on it: http://www.w3schools..._background.asp
Was This Post Helpful? 0
  • +
  • -

#4 visicod  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 05-October 10

Re: background image on web page

Posted 28 October 2010 - 08:38 PM

you can use javascript
Was This Post Helpful? 0
  • +
  • -

#5 Shado3225  Icon User is offline

  • D.I.C Regular

Reputation: 17
  • View blog
  • Posts: 325
  • Joined: 23-February 10

Re: background image on web page

Posted 28 October 2010 - 11:54 PM

Unless the background is in a div that moves up and down your basic run of the mill html would work.

How about showing us some code so we can get a better idea of what you are trying to do.
Was This Post Helpful? 0
  • +
  • -

#6 ladyinblack  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 9
  • View blog
  • Posts: 419
  • Joined: 08-April 09

Re: background image on web page

Posted 29 October 2010 - 01:37 AM

thanks guys, for all your help. I'll try the css coding for the background and see how it goes.
Was This Post Helpful? 0
  • +
  • -

#7 Shado3225  Icon User is offline

  • D.I.C Regular

Reputation: 17
  • View blog
  • Posts: 325
  • Joined: 23-February 10

Re: background image on web page

Posted 29 October 2010 - 01:41 AM

Sweet, I'm sure attaching it to the body will sort your problem out.
Was This Post Helpful? 0
  • +
  • -

#8 ladyinblack  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 9
  • View blog
  • Posts: 419
  • Joined: 08-April 09

Re: background image on web page

Posted 29 October 2010 - 02:51 AM

thanks guys, for all your help. I'll try the css coding for the background and see how it goes.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1