From 20dab225e96636335d6c93edfa6680e883be323e Mon Sep 17 00:00:00 2001 From: BriefBassoon117 <115414619+Nickyangtpe@users.noreply.github.com> Date: Tue, 27 Feb 2024 20:37:44 +0800 Subject: [PATCH] Update index.html --- index.html | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/index.html b/index.html index ec7dd70..c4764a9 100644 --- a/index.html +++ b/index.html @@ -125,12 +125,71 @@ color: white; text-align: center; padding: 10px 0; + }#navbar { + position: fixed; + top: 0; + width: 100%; + background-color: rgba(0, 0, 0, 0.5); + z-index: 999; + padding: 10px 0; + text-align: center; + } + + #navbar a { + color: white; + text-decoration: none; + margin: 0 20px; + } + + #navbar a:hover { + text-decoration: underline; + } + + /* Additional CSS styles for the dropdown menu */ + .dropdown { + position: relative; + display: inline-block; } + .dropdown-content { + display: none; + position: absolute; + background-color: rgba(0, 0, 0, 0.5); + min-width: 160px; + z-index: 1; + } + + .dropdown-content a { + color: white; + padding: 12px 16px; + text-decoration: none; + display: block; + } + + .dropdown-content a:hover { + background-color: rgba(255, 255, 255, 0.1); + } + + .dropdown:hover .dropdown-content { + display: block; + }
+ + +