Cosmo• 590
@cosmoart
Posted
Hi Larisa! Congratulations on completing this challenge... There are several better ways to center the card, I personally recommend using the position: absolute method:
main{
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
I also suggest you use a more semantic HTML, you can use <main>, <section> or <article> etc.
Marked as helpful
0
Larysa• 10
@Lara-trost
Posted
@cosmoart Thanks a lot)
0