Design comparison
Solution retrospective
I designed this webpage for my desktop size 1366px; not for 1440px.
"Bonus: Complete the challenge with just HTML and CSS.", says your README.md.
And I wonder how can I toggle that pricing based on the toggle (annually-monthly toggle) without using JavaScript.
Community feedback
- @mattstuddertPosted over 4 years ago
Nice work Sahityan! I hope you enjoyed the challenge. To complete this challenge without JavaScript you can use a checkbox for the toggle and the
:checked
selector to then change the display of the prices. It's quite a nice challenge to see if you can do it that way. Keep up the great work!1 - @sahithyandevPosted over 4 years ago
I tried to do so. But I couldn't be able to find a solution. Can you please explain how to select an element using :checked selector?
I tried to use the adjacent selector with :checked selector. But it didn't work.
0@mattstuddertPosted over 4 years ago@KSahithyan here's a very basic CodePen for the HTML structure and simple CSS that will hopefully explain it. You'd need to make sure that your HTML structure allows you to use the adjacent selector, but it sounds like you're definitely on the right track.
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