By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,968 Members | 1,574 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,968 IT Pros & Developers. It's quick & easy.

"Lock" image when scrolling?

P: 1
I'm changing the layout of my Tumblr-page, and inserted a picture in the corner with this code:
Expand|Select|Wrap|Line Numbers
  1. <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?
Jul 31 '11 #1
Share this Question
Share on Google+
2 Replies


ilya Kraft
100+
P: 134
change position:absolude; to position:fixed;
Jul 31 '11 #2

malav123
100+
P: 217
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.
Aug 2 '11 #3

Post your reply

Sign in to post your reply or Sign up for a free account.