Hello,

I'm trying to get a div tag to move while scrolling. I know you can do position: fixed, but I was wondering how to do it so if the div tag is in the middle of the web browser, it will stay there until when you scroll down and it gets to the top of the browser the browser will drag it down.

Also, I wanted my div tag to be on the right side of my browser. When I tried doing position: fixed, it stays on my left. I also tried float: right, but it doesn't work

Any suggestion?

Thank you

any suggestions?

thank you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.