Overlaying and locking image help? ^^


Go to page: 1 Bookmark Thread
Reeses

12:55pm Feb 24 2011

Normal User


Posts: 6,216
A long time ago I used to edit my pets a bit with a scarf or something and just overlay an image over  the original with this code:

<div style="overflow: auto; width: 265px; height: 240px; position: absolute; top: 491px; left: 268px; border:none; background-color: transparent; padding: 2px; color:white;"><img src="http://i41.tinypic.com/2lu860x.jpg"></div>
 
However, I want to use it for a different purpose now- sort of just a little image that stays in one corner of the screen without moving even when you scroll.  How do I make it so that it stays locked in place?
 
 




Wat.
ಠ_ಠ
luv2eatTacos

7:28pm Feb 24 2011

Normal User


Posts: 1,679
If I'm remembering correctly, you just need to add this to the div style part:
 
position:fixed;
 
And it should do what you want it to.  If I'm remembering incorrectly...well, it's something close to that and I'll figure it out. xD




Click for Graphic Commissions
Reeses

11:29pm Feb 24 2011

Normal User


Posts: 6,216
Oh it worked.  Thank you so much! C=




Wat.
ಠ_ಠ
luv2eatTacos

3:45pm Feb 25 2011

Normal User


Posts: 1,679
No problem. :3




Click for Graphic Commissions
Go to page: 1