From 41ca512e50f78adf9d0468d883cf44ee5cc04d41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Wed, 7 Oct 2020 20:11:23 -0500 Subject: testing sticky menu Keeps elements positioned as "fixed" or "relative" depending on how it appears in the viewport. As a result the element is "stuck" when necessary while scrolling. --- grid.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/grid.css b/grid.css index a39b980..a2a6fd8 100644 --- a/grid.css +++ b/grid.css @@ -67,6 +67,11 @@ video { background: var(--header-bg); } +.header { + position: sticky; + top: 0px; +} + .navbar-menu { grid-area: navbar-menu; -- cgit v1.2.3