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!

Fixed image positioning

Status
Not open for further replies.

daveh

Technical User
Jun 22, 2000
57
GB
Hi,

I have a website with two frames, one at the top, and one on the left. They are meant to look as if they are the same, by having the same colour, no borders, etc. To make it even better, I have created a corner image that improves the interface. The corner image is called 'crnrgraphic.gif'.

I want to position it at 0,0px in the main frame, which I can do, but I also want it to stay in the same place when I scroll. I thought this was just the ABSOLUTE CSS attribute, but when I go on to any websites claiming to implement that on their page, my browser (IE6) displays the image, but doesn't move it when I scroll down.

My CSS code at the moment (external stylesheet) is...
**************
.crnrgraphic { position: absolute;
top: 0px;
left: 0px }
**************

As I say, it is displayed correctly, but doesn't scroll. If this function will simply not work in most browsers, then can anyone suggest any other way of achieving the same results? Perhaps JavaScript?

Kindest regards,
David.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top