Mobile first using SCSS and React

Solution retrospective
Flex basis saved me for the bottom 4 links because the list item was overflowing if the a tag was too long. What I previously did was set the list item which contained the a tag to just 50% in the flex container but it was still overflowing out the grid layout. And that was the very problem because when the list item was given a fixed width, the flex container had no idea it was taking more than 50%. So instead, I removed the width, and just set the flex basis in which it saw it was more than 50%, so it wrapped thanks to flex-wrap.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on jackson's solution.
Join 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