Design comparison
SolutionDesign
Solution retrospective
Any ideas how to better position "Annual Plan $59.99/year" so it moves a bit to the left? I used margin-right, but it doesn't look good on small screens .
Community feedback
- @daniloarcidiaconoPosted over 2 years ago
Hello, I would start by adding this:
.shopping-item-details { ... flex: 1 1 auto; }
which is a short form for:
.shopping-item-details { ... flex-grow: 1; flex-shrink: 1; flex-basis: auto; }
That makes the 'Annual Plan' grow and take the available space.
Finally, add the following:
.shopping-item { .... gap: 1rem; }
gap
adds a margin between flex items.Marked as helpful0
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