
Pricing component with toggle, HTML/CSS only
Design comparison
Solution retrospective
Is the switch code written well? I feel it's a hacky solution, honestly I would've preferred doing it with JavaScript instead.
Community feedback
- @adarshcodesPosted almost 5 years ago
Hi! @kubikill, Your solution looks great, the toggle is fine. You can make a few changes to the border of the first and last card to look more similar to the design.
you can useborder-radius: 8px 0 0 8px;
for first card andborder-radius: 0 8px 8px 0;
2@kubikillPosted almost 5 years ago@adarshcodes Good catch! I didn't even notice that, I'll change it. Thank you for your feedback!
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