From bf88d832f2858ac274d47a940b580790e1cebfd2 Mon Sep 17 00:00:00 2001 From: Sage The DM Date: Mon, 1 Jul 2024 09:32:58 +0200 Subject: [PATCH] Please finally notice my work --- style.css | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/style.css b/style.css index 71e56e0..9661774 100644 --- a/style.css +++ b/style.css @@ -19,18 +19,6 @@ body { padding: 0; } -.div-menu{ - z-index: 1; - background-color: #211c1c; - width: 100%; - position: fixed; - top: 0; - left: 0; - box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); - padding: 0; - height: auto; -} - /* Header styles */ header { background-color: #211c1c; @@ -42,6 +30,19 @@ header { padding: 0; /* Further reduce the padding */ height: auto; z-index: 10; /* Higher z-index to ensure it is above other elements */ + height: 5em; +} + +.div-menu{ + z-index: 1; + background-color: #211c1c; + width: 100%; + position: fixed; + top: 0; + left: 0; + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); + padding: 0; + height: auto; } .header-content { @@ -115,7 +116,7 @@ header { .menu.active { display: flex; - top: 10vh; + top: 5em; z-index: 5; /* Lower z-index than header, header content, and project name */ }