@danielmrz-dev
Posted
Hey there! šš½āāļø
Congrats on completing the challenge! ā
Your project looks fantastic!
Here's a tip to make it even better:
Using margin
and/or padding
isn't always the best way to center an element.
Try this method to center an element vertically and horizontally:
š Apply this CSS to the body (skip position or margins to make it work correctly):
body {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
Hope this helps!
Keep up the great work!
Marked as helpful
@danielmrz-dev
Thanks for your reply. I put flexbox on the body and it worked fine, but if I had attribution on the bottom of the page, than the vertical positioning is different than in design file, so I bring back old solution only to make sure my solution is close to match up design in "design comparison".