From cde6c0dbb182d5b29a2104227f33822761730585 Mon Sep 17 00:00:00 2001 From: RohithChitrada Date: Sat, 1 Jun 2024 15:06:28 +0530 Subject: [PATCH] navbar fixed --- index.html | 29 +++++++++++++++-------------- styles.css | 5 +++-- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/index.html b/index.html index cada6f26..e82d1fda 100644 --- a/index.html +++ b/index.html @@ -46,10 +46,10 @@ window.location.href = 'plantrip.html'; } // const menuButton = document.getElementsByClassName('link'); - function closeNav() { - let list = document.querySelector('.navLinks'); - list.classList.toggle('activeHamburger'); - } + //function closeNav() { + // let list = document.querySelector('.navLinks'); + // list.classList.toggle('activeHamburger'); + //} // menuButton.forEach((button) => (button.onclick = () => closeNav())); @@ -110,19 +110,20 @@

TourGuide . . .

+
@@ -350,7 +351,7 @@

Get Flat 15% OFF

- +

Explore top destinations

@@ -452,7 +453,7 @@

MALDIVES

- +
diff --git a/styles.css b/styles.css index 09d18036..529e5aa6 100644 --- a/styles.css +++ b/styles.css @@ -1796,7 +1796,9 @@ body { display: flex; cursor: pointer; } - + .nav__logo{ + margin-left:-80px; + } .navLinks { position: absolute; top: 70px; @@ -1828,7 +1830,6 @@ body { .navLinks.activeHamburger { width: 100%; - padding-top: 100px; } /* New NAvbar CSS Ends Here*/