Design comparison
SolutionDesign
Solution retrospective
Learnt more about position relative. Assumed it had to be used along with position absolute on the parent.
position relative can be set on any tag or element. This will make the tag's position relative to its original position in the html
Community feedback
- @matiasluduena23Posted over 1 year ago
Hi @PapsPython! good work! Just one advice, to center your content, you need to put a
height
in your body, you do it well with your flex and align items, but your need a height so your flex configuration can work. Put in your bodymin-height: 100vh
. Always use a heigth when you need to center a content.Good code!!!
1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord