Travolgi 🍕• 31,420
@denielden
Posted
Hi Kiril, good work!
For me flexbox is the best way to align and have excellent control of the elements in the shortest possible time.
I had a look at your solution and I have a few suggestions for you:
body
need flex for align the card:height: 100vh; display: flex; align-items: center; justify-content: center;
- in this case
main
does not need flex,margin
andheight
but needdisplay: block
section
does not need flex you can manage spaces viapadding
You did well overall ;)
Hope this help
0