0
How to make div follow scrolling
hi there I need help. the div is on an article, and if i scroll down the div is still following. like the div is a title an article. and title is always follow the reader to remember, the article title is blablabla(it just example). how to make like that?. I'm sorry my English is poor.
2 odpowiedzi
+ 8
simple...
title,div{
position: fixed;
}
the position:fixed syntax ensures an elements position stays static even during a scroll
https://www.sololearn.com/learn/CSS/1114/
0
Hi resmaadi nugroho,
Since you're struggling with describing the desired behavior, I think the best thing to do is to put your attempt(s) in CodePlayground and link them here so we can help troubleshoot any specific issues you run into.
Looking forward. ☺