From 5477afaf65da8b92132e969624965ced16fd855a Mon Sep 17 00:00:00 2001 From: Pankaj Kumar Bind Date: Sat, 1 Jun 2024 20:01:48 +0530 Subject: [PATCH] icon alignment fixed --- src/components/Navbar.css | 10 ++++++++++ src/components/Navbar.jsx | 40 +++++++++++++++++++++++++-------------- 2 files changed, 36 insertions(+), 14 deletions(-) diff --git a/src/components/Navbar.css b/src/components/Navbar.css index 5b161ab..2a8a077 100644 --- a/src/components/Navbar.css +++ b/src/components/Navbar.css @@ -46,6 +46,16 @@ margin: 0.5em; } +.nav-link { + display: flex; + align-items: center; + } + .nav-link i, + .nav-link font { + display: flex; + align-items: center; + } + /* Responsive Styles */ @media screen and (max-width: 768px) { .navbar-list { diff --git a/src/components/Navbar.jsx b/src/components/Navbar.jsx index 05e2b5c..2183952 100644 --- a/src/components/Navbar.jsx +++ b/src/components/Navbar.jsx @@ -13,37 +13,49 @@ const Navbar = () => { setMenuOpen(false); }; - return ( -