[Solved] Q. How shall I make a div not scroll with rest of the page. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

[Solved] Q. How shall I make a div not scroll with rest of the page.

The div should not scroll with rest of the page, I want it to stick at its place. • Important note:- I've used float:right; so position:fixed; won't work.

7th Sep 2021, 11:41 AM
Shobhit :)
Shobhit :) - avatar
3 Answers
+ 2
Use position fixed
7th Sep 2021, 11:48 AM
Abhay
Abhay - avatar
+ 1
Abhay, I've used float:right; so position:fixed; isn't working. Please suggest something else.
7th Sep 2021, 11:50 AM
Shobhit :)
Shobhit :) - avatar