About Position Sticky
Use position: sticky; for elements that you want to stick at the top or bottom of the visible part of their containers while the rest of the content is scrolled.
.sticky-header {
position: sticky;
position: -webkit-sticky;
top: 0;
}
Also by me
Django Messaging 🎅🏼
For Django-based social platforms.
Django App for You
Django Paddle Subscriptions 🎅🏼
For Django-based SaaS projects.
Django App for You
Django GDPR Cookie Consent 🎅🏼
For Django websites that use cookies.
Django App for You