@somaye-beiranvand
Posted
Hi Rishma
As I had your problem before I Know what exactly you meen by asking the question.
In this project it's better to give this settings to body and just put your container inside it.
body{
width:100%;
min-height:100vh;
display:flex;
align-items:center;
justify-content:center;
}
it't better to give body min-height not a fixed height, so if necessary it can stretch vertically.
great job on doing the project, happy coding😊
Marked as helpful
@rimshub
Posted
@somaye-beiranvand Hello,
Yes that's what i usually go with when there's just one element to be centered and I also did the same in this challenge. You're right, thank you for mentioning it, min-height (also the max-width) would be the best choice here.
Thank youuu✨