Skip to content

Commit

Permalink
added hover in the navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayks13 committed Nov 1, 2024
1 parent 3aa21cf commit 15430f1
Showing 1 changed file with 44 additions and 3 deletions.
47 changes: 44 additions & 3 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,25 @@ body {
display: flex;
justify-content: space-between;
align-items: center;
background-color: white;
padding: 10px 20px;
padding: 15px 30px;
background-color: #343a40; /* bg-dark */
position: sticky;
top: 0;
z-index: 1000;
}

.logo {
color: white;
font-size: 24px;
width: 170px;
}

/* Logo styling */
.navbar .logo img {
width: 100px; /* Adjust size as needed */
cursor: pointer;
}


.nav-list {
list-style: none;
display: flex;
Expand All @@ -109,6 +118,37 @@ body {

}

.nav-link {
color: #ffffff;
text-decoration: none;
font-size: 16px;
font-weight: 500;
transition: color 0.3s ease, border-bottom 0.3s ease;
position: relative;
}

/* Hover effects for links */
.nav-link:hover {
color: #23d1c8;
}

/* Underline effect on hover */
.nav-link::after {
content: '';
position: absolute;
left: 0;
bottom: -5px;
width: 0;
height: 2px;
background-color: #23d1c8;
transition: width 0.3s ease;
}

.nav-link:hover::after {
width: 100%;
}


/*.nav-list a:hover {
background-color: white;
border-radius: 5px;
Expand All @@ -125,6 +165,7 @@ body {
width: 25px;
background-color: black;
margin: 3px 0;
transition: 0.3s;
}
.menu{
display: none;
Expand Down

0 comments on commit 15430f1

Please sign in to comment.