@hitmorecode
Posted
Congratulations well done. I took a look at what you did and you used position. In this case you don't have to use position. Make use of flexbox instead. I made some changes to fix it. Try it and it's good practice to use min-height: 100vh
on the body.
body{
background-color: hsl(212, 45%, 89%);
/* position: relative; */
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
min-height: 100vh;
}
.component{
/* position:relative; */
/* left: 40%; */
/* top: 100px; */
padding: 15px;
width: 20rem;
border-radius: 15px;
}
.footer{
margin-top: 30px;
/* margin-left: 550px; */
/* position: absolute;
right: 35%;
bottom: 10%; */
}
Marked as helpful