This is a solution to the Pricing component with toggle challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the optimal layout for the component depending on their device's screen size
- Control the toggle with both their mouse/trackpad and their keyboard
- Bonus: Complete the challenge with just HTML and CSS
Mobile layout | Desktop layout |
---|---|
![]() |
![]() |
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow