CSS Position Fixed vs Sticky 🤯🤯🤯

Опубликовано: 05 Апрель 2025
на канале: Code Jungle
1,212
112

The difference between “position: fixed” & “position: sticky” in CSS by coding_dev_ 🔥

The position: fixed means fixed to the viewport. We tell it where to position itself (top, bottom, right, or left) and it will stay there fixed when user scrolling.

Meanwhile, when using position: sticky it won’t affect until we define offset, like top: 10px. So the element will scroll like others until it reaches the offset and then stay on its position.

Hope this helps ✅️

Post Credits: coding_dev_ 🌟

Do Like ❤️ & Share 🙌

#html #css #javascript #webdev #100daysofcode #webdeveloper #css3 #html5 #htmlcoding #htmlcss #javascriptdeveloper #frontenddeveloper #devcommunity

Css tricks, css positions, css tutorial, css sticky position , html, web developer, frontend development