Skip to content

Commit

Permalink
Fixed the about section to be responsive for all sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
Utsavladia committed Aug 10, 2024
1 parent bc00778 commit c5bb3aa
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/Components/About/About.css
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,34 @@
transform: translateY(0);
}
}


@media (max-width:1024px) {
.about-section{
padding: 10px;
}

.about-section h3 {
font-size: 1.3rem;
}

.about-section p{
font-size: 0.8rem;
}
}

@media (max-width:500px) {
.about-section{
flex: 1 1 90%;
}

.about-section h3{
font-size: 1.8rem;
}

.about-section p{
font-size: 1rem;
}

}

8 changes: 8 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,14 @@ nav1:hover {
color: #fff;
} */

@media (max-width:1024px) {
.container{
padding-left: 5%;
padding-right: 5%;
}

}



@media(max-width: 1200px) {
Expand Down

0 comments on commit c5bb3aa

Please sign in to comment.