From e969b4e15e3851c01befc7ed9d779f2644c0c4e9 Mon Sep 17 00:00:00 2001 From: Jolan Wuyts Date: Tue, 2 Oct 2018 17:26:48 +0200 Subject: [PATCH] added position sticky to dropdown content adding position:sticky on line 179 makes the dropdown menu stick to the top nav bar, also when the user scrolls down. The issue this creates is that it overrides the overflow:hidden element of the topnav bar, thus showing the background-color:black over the whole width of the nav. --- css/primetest.css | 1 + 1 file changed, 1 insertion(+) diff --git a/css/primetest.css b/css/primetest.css index 6c68749..0d869bd 100644 --- a/css/primetest.css +++ b/css/primetest.css @@ -176,6 +176,7 @@ body { /* Show the dropdown menu on hover */ .dropdown:hover .dropdown-content { display: block; + position:sticky; }