Skip to content

Commit

Permalink
Merge pull request Suchitra-Sahoo#1001 from SumithThota/main
Browse files Browse the repository at this point in the history
Navbar Position is fixed Properly
  • Loading branch information
Suchitra-Sahoo authored Jun 27, 2024
2 parents 7c25122 + 770fdd1 commit 777863a
Showing 1 changed file with 37 additions and 11 deletions.
48 changes: 37 additions & 11 deletions blogpagestyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ nav {
}
.navbar a {
/* position: relative; */
font-size: 2rem;
font-size: 3rem;
/* left: 118px; */
color: var(--txt-color);
margin-left: 4rem;
Expand Down Expand Up @@ -695,38 +695,62 @@ font-size: 36px;
display: none;
}

@media (max-width: 1216px) {
.header{
padding: 2px;
justify-content: center;
gap: 0;
}

.title
{
margin-right: 300px;
}

.navbar
{
/* margin-right: 90rem; */
position: absolute;
top: 25px;
left: 450px;
width: 100%;
padding: 1rem 1%;
/* background: var(--bg-color); */
/* border-top: 0.1rem solid rgba(0, 0, 0, 0.2); */
/* box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2); */
display: flex;

}

@media (max-width: 1309px) {
.about-content {
flex-direction: column;
}
.logo {
font-size: 2vmax;
font-size: 2.6vmax;
}

.header{
padding: 2px;
justify-content: center;
gap: 0;

}

#menu-icon {
display: block;
font-size: 4.5vmax;
font-size: 5vmax;
}
.navbar {
position: absolute;
top: 100%;
left: 0;
width: 100%;
height: 400px;
padding: 1rem 1%;
background: var(--bg-color);
border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
display: none;
height:500px;
height: 700px;
}

.navbar :active {
display: block;

}
.navbar a {
display: block;
Expand All @@ -749,6 +773,8 @@ font-size: 36px;
height: 100vh;
} */


.quick-links ul{
flex-direction: column;
}
Expand Down

0 comments on commit 777863a

Please sign in to comment.