Skip to content

Commit

Permalink
Made the site responsive
Browse files Browse the repository at this point in the history
Made a few changes to Main.css by adding media quires to make the site responsive.
  • Loading branch information
saakshiraut28 authored Oct 23, 2021
1 parent 7ab9d52 commit 0010cd8
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/Components/Main/Main.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ main {

}


.image_container {
background-color: transparent;
display: flex;
Expand All @@ -46,7 +47,6 @@ main {
border: none;
margin: 1rem 1rem;
overflow: hidden;

}

.image_container img {
Expand All @@ -64,6 +64,7 @@ hr{
}

.dec_container {

background-color: transparent;
text-align: justify;
width: 50%;
Expand Down Expand Up @@ -119,3 +120,21 @@ hr{
.image_copyright{
color: #4299E1;
}

@media only screen and (max-width: 768px) {
/* For mobile phones: */
.down_container {
flex-direction: column;
}
.image_container {
flex-direction: row;
width: 100%;
}
.image_container img {
width: 100%;
height: auto;
}
.dec_container {
width: 100%;
}
}

0 comments on commit 0010cd8

Please sign in to comment.