Subhrajit Talukdar• 10
@subhrajit77
Submitted
Looking to hire developers?
@Abhishek10351
@subhrajit77
Submitted
@Abhishek10351
Posted
The solution is identical but you have to align the card properly. To do this you can use flexbox.
body{
display:flex;
align-items:center;
justify-content:center;
min-height:100vh;
}
Marked as helpful
@Devn777
Submitted
Are there any bad practices I need to watch out for?
@Abhishek10351
Posted
You should use semantic html like main, section , footer instead of divs and spans for everything. Do not place the contents directly inside the body, use a wrapper like main, section.
And lastly use flexbox to have better control over the elements placing. Hope it helps.