Skip to content

Commit

Permalink
wrapper section properly aligned in small size screen
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmalfaris11 committed May 31, 2024
1 parent 47228a9 commit 93c76fe
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ body{
display: flex;
flex-direction: column;
justify-content:space-between ;
align-items: center;
height: 100%;

}

.img_section {
Expand All @@ -238,6 +239,17 @@ body{
object-fit: cover;
}

.img_section {
border-radius: 25px;
background-image: url("images/space.png");
background-repeat: no-repeat;
background-size: cover; /* Ensures the image covers the entire element */
background-position: center; /* Centers the image within the element */
width: 100%; /* Takes full width of the parent container */
height: auto; /* Adjusts the height automatically to maintain aspect ratio */
object-fit: cover; /* Ensures the content of the element covers its box */
}

.img_section::before {
content: "";
position: absolute;
Expand All @@ -258,7 +270,11 @@ body{
height: 100vh;
}
.content_section {
background-color: #230648ca;
margin-top: 30px;
background-color: #24023d5c;
display: flex;
flex-direction: column;
justify-content: space-around;
}

}
Expand Down

0 comments on commit 93c76fe

Please sign in to comment.