From e2a2c4eb928c265bd56bef90d62995cfb0366564 Mon Sep 17 00:00:00 2001
From: lovely mahour <141830010+lovelymahor@users.noreply.github.com>
Date: Sat, 27 Jul 2024 14:59:58 +0530
Subject: [PATCH] Improve Navbar Visibility and Add Dropdown Menu
Enhanced navbar visibility with better readability and contrast.
Added a dropdown menu for better organization.
---
index.html | 19 +++++++++++--------
styles.css | 42 +++++++++++++++++++++++++++++++++++++++---
2 files changed, 50 insertions(+), 11 deletions(-)
diff --git a/index.html b/index.html
index d03cafe0..2e4bcc8a 100644
--- a/index.html
+++ b/index.html
@@ -312,21 +312,24 @@
TourGuide . . .
Tourguide.
-
+
diff --git a/styles.css b/styles.css
index dbdd68fe..1336b1c9 100644
--- a/styles.css
+++ b/styles.css
@@ -2054,7 +2054,7 @@ body {
gap: 0.5rem;
height: auto;
width: 100%;
- padding: 1rem 2rem;
+ padding: 0rem 2rem;
}
.navLinks {
@@ -2070,10 +2070,46 @@ body {
right: 24px;
}
-.link a {
+.link {
position: relative;
}
+.link > a {
+ display: block;
+ color: white;
+ text-align: center;
+ padding: 14px 20px;
+ text-decoration: none;
+}
+.link > a:hover {
+ background-color: #575757;
+}
+.dropdown-menu {
+ display: none;
+ position: absolute;
+ background-color: #123456;
+ min-width: 160px;
+ box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
+ z-index: 1;
+}
+.dropdown-menu > li {
+ float: none;
+}
+
+.dropdown-menu > li > a {
+ padding: 12px 16px;
+ text-decoration: none;
+ display: block;
+ text-align: left;
+}
+
+.dropdown-menu > li > a:hover {
+ background-color: #575757;
+}
+
+.dropdown:hover .dropdown-menu {
+ display: block;
+}
/* .link a::before {
position: absolute;
content: "";
@@ -2924,7 +2960,7 @@ a {
position: relative;
text-decoration: none;
color: black;
- font-size: 18px;
+ font-size: 14px;
}
a::after {
content: '';