From a13758cfe21503f3e4f57eafef38f71ca406fc26 Mon Sep 17 00:00:00 2001 From: Jonathan Dahan Date: Sat, 1 Jun 2024 14:13:39 -0400 Subject: [PATCH] hover for entire nav should work for dropdown --- style.css | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/style.css b/style.css index ad165f2..a8c45ed 100644 --- a/style.css +++ b/style.css @@ -12,11 +12,11 @@ body { header { background: white; position: sticky; - top: 1em; + top: 0; & > nav { background: white; position: sticky; - top: 0.5em; + top: 0; display: flex; font-size: xx-large; & a { @@ -56,8 +56,10 @@ li { list-style: none } min-width: fit-content; } header { - max-height: 1em; - top: 0em; + &:hover > nav > menu > li { + visibility: initial; + display: block; + } & > nav { top: 1em; & menu { @@ -70,10 +72,6 @@ li { list-style: none } visibility: inherit; display: block; } - &:hover li { - visibility: initial; - display: block; - } } } }