Skip to content

Commit

Permalink
Update Navabar.html
Browse files Browse the repository at this point in the history
Resolved Distortion issue in the Nav-Bar.
  • Loading branch information
varshiniprakash08 authored Jun 4, 2024
1 parent 6e48afa commit 854dce8
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions Navabar.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,28 @@
position: absolute;
}

.nav-link{
position: absolute;
text-align: center;
}

.navbar-nav .nav-link {
color: black;
margin: auto;
/* padding: 10px 15px; */
font-size: 16px;
text-transform: uppercase;
position: relative;
transition: background-color 0.5s;
/* transition: background-color 0.5s; */
border-radius: 10px;

}

.navbar-nav .nav-link:hover {
display: block;
background-color: white;
width:7.47rem;
height: 4.8rem;
/* background-color: white; */
/* width:7.47rem; (this property ditorts the nav bar)
height: 2rem; */
align-content: center;
text-align: center;
border-radius: 10px;
Expand All @@ -52,6 +61,7 @@
.navbar-nav .nav-link img {
height: 20px;
padding-right: 20px;
border-radius: 10px;
}

.navbar-nav .dropdown-menu {
Expand Down Expand Up @@ -112,10 +122,15 @@

.navbar-nav .nav-item:hover .nav-link {
color: black;

}
.nav-item
{
border-radius: 10px;
}

/* Adjustments */
.navbar-nav .nav-link {
.navbar-nav {
margin-left: 10px; /* Adjust the margin as needed */
}
/* .navbar-nav{
Expand Down

0 comments on commit 854dce8

Please sign in to comment.