From ebb28b7247040f78f226725add10bfba6ea326dc Mon Sep 17 00:00:00 2001 From: Utsavladia Date: Thu, 8 Aug 2024 23:30:13 +0530 Subject: [PATCH] Fixed the navbar resposivness for alll screen sizes --- src/Components/Container.css | 2 +- src/Components/TopContainer.css | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/Components/Container.css b/src/Components/Container.css index 40da8878..cbb4d1e3 100644 --- a/src/Components/Container.css +++ b/src/Components/Container.css @@ -61,7 +61,7 @@ .topContainer .inputBox input { width: 100%; height: 100%; - padding: 0px 40px; + /* padding: 0px 40px; */ font-size: 16px; color: #d0cfd4; background: #75738045; diff --git a/src/Components/TopContainer.css b/src/Components/TopContainer.css index 38b05b03..8f4735f9 100644 --- a/src/Components/TopContainer.css +++ b/src/Components/TopContainer.css @@ -1,3 +1,7 @@ +.topContainer{ + width: 100%; +} + /* General navbar styles */ .navbar { width: 100%; @@ -11,7 +15,7 @@ position: relative; top: 0; gap: 0.1rem; - margin-left: 120px; + /* margin-left: 120px; */ } /* Navigation items container */ @@ -45,6 +49,7 @@ /* Input box styles */ .inputBox { + position: relative; display: flex; align-items: center; @@ -192,7 +197,7 @@ @media screen and (max-width: 1500px) { .mobview { display: flex; - margin-left: 80%; + /* margin-left: 80%; */ flex-direction: row; justify-content: space-between; align-items: center; @@ -214,7 +219,7 @@ .mobview #shortview { position: absolute; - right: 100%; + /* right: 100%; */ top: 60px; background: rgba(0, 0, 0, 0.8); border-radius: 10px;