@dnksebastian
Posted
Hi Maciek!
Good job on your project! You can center elements in their parent containers in a number of ways. For example, in this case you can use min-height: 100vh; display: flex; align-items: center; justify-content: center;
on the body element and eliminate the margins you used on <main>. Keep it up :)
Cheers!
Marked as helpful
@manonthemon
Posted
@dnksebastian Thank you! Very helpful. Flexbox and grid are the next frontier for me. I'll give this challenge another spin once I comprehend them better. In the meantime, I've updated my code as suggested, :) Cheers!
@dnksebastian
Posted
@manonthemon Flexbox is a great tool, it's definitely worth to learn it well! There are plenty of awesome guides to this model, I recommend these:
- https://www.joshwcomeau.com/css/interactive-guide-to-flexbox/
- https://css-tricks.com/snippets/css/a-guide-to-flexbox/
Good luck!