"Lock" image when scrolling?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kiyorin
    New Member
    • Jul 2011
    • 1

    "Lock" image when scrolling?

    I'm changing the layout of my Tumblr-page, and inserted a picture in the corner with this code:
    Code:
    <img src="image url here" style="position:absolute; top:520px; right:0px;" width="547" height="146" alt="" />
    But when I save the page and scrolls down, the image isn't locked in the background. I once saw a person who had done this(with a different code, that is, but when I tried that code, the same thing happened.), and the picture still was in the corner if I scrolled down. Anyone knows how to do this, is it possible at all?
  • ilya Kraft
    New Member
    • Jan 2011
    • 134

    #2
    change position:absolu de; to position:fixed;

    Comment

    • malav123
      New Member
      • Feb 2008
      • 217

      #3
      Hi,

      If you want to fix the image in your page's background then you have to give that image in to background image of page, then you have to set property background-position:fixed, then it will work for you....


      -Malav Chauhan.

      Comment

      Working...