Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keep an image in place when scrolling 1

Status
Not open for further replies.

snoopy75

Technical User
Aug 24, 2001
340
US
I'd like an image to stay put, even when the page is scrolled... I know you can use position:fixed, but that only works in Netscape... Is there a way to do a similar thing in IE6?

--Ryan
 
Hi,
If you place it in the background try:

<STYLE TYPE=&quot;text/css&quot;>
BODY {background-image: url(image.jpg);
background-repeat: no-repeat;
background-position: center;
background-attachment: fixed;}
</STYLE>

otherwise depending where you are placing it, why not set it into a frame and set its position in a table.

Reality is built on a foundation of dreams.
 
JavaScript can do it. Check the JavaScript forum, I'm sure they could give you the code.

-Volkoff007
 
That's okay... I just ended up making another frame for my images... Not very neat, but it works really well! :) Thanks for the idea, overyde.

--Ryan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top