Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Pricing Cards w/ toggle btn, Mobile First, only HTML & CSS

Yuko Horita• 645

@Sloth247

Desktop design screenshot for the Pricing component with toggle coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hi, I tried to achieve the price change only with CSS and the solution should work, however it didn't work. Can somebody help especially why.header__checkbox:checked ~ * .plan__price--monthly and .header__checkbox:checked ~ * .plan__price--annual do not work.

I also found it difficult to achieve this by javascript.

Also any comments are welcome on HTML semantics and other stylings.

I need your help! 😂

Community feedback

P
Chamu• 12,970

@ChamuMutezva

Posted

You need Javascript to toggle the prices

Marked as helpful

0
P
Patrick• 14,325

@palgramming

Posted

Well currently your cards in the desktop layout are overlaying each other and need some margin/gap/space between them

Marked as helpful

0

Please log in to post a comment

Log in with GitHub
Discord logo

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