From 2624846147c2ace0d7bec6b865393539e2f8d40b Mon Sep 17 00:00:00 2001 From: shivamv_03 Date: Thu, 3 Oct 2024 01:38:24 +0530 Subject: [PATCH] made all changes regarding the alignment --- Css-files/content.css | 28 +++++-- Html-files/contact.html | 1 + index.html | 37 +++++---- style.css | 172 ++++++++++++++++++++++++++++------------ 4 files changed, 162 insertions(+), 76 deletions(-) diff --git a/Css-files/content.css b/Css-files/content.css index afe67423..4accb483 100644 --- a/Css-files/content.css +++ b/Css-files/content.css @@ -37,11 +37,23 @@ body { } +/* Base navbar styles */ .navbar { padding: 8px 10px; + overflow: hidden; + transition: background-color 0.3s ease; /* Smooth transition for background */ +} + +/* Styles for scrolled navbar */ +.navbar.scrolled { + background-color: rgba(20, 43, 93, 0.8); /* Darker background when scrolled */ } + +/* Unchanged navbar styles */ .navbar ul { overflow: hidden; + margin: 0; /* Reset margin */ + padding: 0; /* Reset padding */ } .navbar li { @@ -49,6 +61,7 @@ body { list-style: none; padding: 8px 20px; } + .navbar li:hover { opacity: 0.7; } @@ -59,19 +72,20 @@ body { color: white; font-size: 1.3rem; } + .navbarbg { - padding: 8px 0; - background-color: hsl(20, 43%, 93%); - text-align: left; + padding: 7px 0; + background-color: hsl(20, 43%, 93%); + text-align: left; } .navbarbg ul { - display: inline-block; - padding-left: 0; + display: inline-block; + padding-left: 0; } .navbarbg li { - display: inline-block; + display: inline-block; list-style: none; margin: 0 10px; } @@ -80,7 +94,7 @@ body { padding: 5px 10px; text-decoration: none; color: white; - font-size: 1.3rem; + font-size: 1rem; } .navbarbg li:hover { diff --git a/Html-files/contact.html b/Html-files/contact.html index 60f37364..c88ec9df 100644 --- a/Html-files/contact.html +++ b/Html-files/contact.html @@ -596,6 +596,7 @@

Follow Us

}); }); + \ No newline at end of file diff --git a/index.html b/index.html index 0277550a..47cf83ab 100644 --- a/index.html +++ b/index.html @@ -363,26 +363,29 @@

Whims -
-
-
-

Bringing happiness
to you

-

Order your favourite vintage collections!

-
-
-

Online Delivery


- Order Online - -
-
-

Click & Collect


- Take out Order +
+
+ +

+

Bringing happiness
to you

+

Order your favourite vintage collections!

+
+ +
+
+
+

Online Delivery


+ Order Online +
+
+

Click & Collect


+ Take out Order +
-
- -
+
+