SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Jul 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    set a fixed background image?

    Hi, can anyone tell me the css code to set a fixed background (which dont move when we scroll the mouse)? thank you very much!

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,172
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    Code:
    background: url(image.gif) fixed;
    or just

    Code:
    background-attachment: fixed
    There are more things you can add, like no-repeat and positioning, depending on your need.

  3. #3
    SitePoint Member
    Join Date
    Jul 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay, i'll try, thank you very much (why there isnt the thanks button??)

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,172
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    Great. Let us know how you go.

    Quote Originally Posted by jiksaw213 View Post
    why there isnt the thanks button?
    It's on my website, but it's called Donate Now.


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
  •