Design comparison
SolutionDesign
Solution retrospective
Hello Dear Community
Creating dropdown menu was the most important thing that I gained from this challenge and I learned how to create absolute div with auto size:
A div with absolute position get size of its children if:
- make display of div flex
- make flex-shrink of children 0
<motion.div ... className="... flex"> <ul className="... shrink-0"> ... </ul> </motion.div>
Thanks for viewing my challenge, Any recommendation is appreciated
Community feedback
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