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.

6th Jul 2018, 9:36 PM
resmaadi nugroho
resmaadi nugroho - avatar
2 ответов
+ 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/
6th Jul 2018, 9:52 PM
᠌᠌Code X
᠌᠌Code X - avatar
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. ☺
6th Jul 2018, 9:43 PM
Janning⭐
Janning⭐ - avatar