@tesla-ambassador
Posted
Hey sheikhhaseeb559, It's good to see that you have uploaded another solution. I like that you have integrated media queries into your css now! Kudos π₯³!
Anyways, I looked at your css and noticed that there's a few things you could add to enable your container to be placed in the middle of the viewport. Here's some code you can add to your <body></body>
tag:
body {
height: 100vh;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
Then you can make these changes to your container
element so that the previous changes can be effective...
Remove the following styles from your <div class="container"></div>
:
.container {
position: absolute;
left: 300px;
top: 90px;
}
Congrats on completing the challenge, happy coding!
Marked as helpful
@sheikhhaseeb559
Posted
@tesla-ambassador thanks for this is very helpful for me
@tesla-ambassador
Posted
@sheikhhaseeb559 I'm glad I could help π
Marked as helpful