Used Grid , flex layout and Jquery's addClass() to toggle active state
Design comparison
Solution retrospective
Do let me know if there is any other better or easier way to do the toggling of active state.
Community feedback
- @palgrammingPosted over 3 years ago
The overall layout in the desktop layout should not be changing its width and height this is effecting all your other elements inside the card
0@TSPraneethPosted over 3 years ago@palgramming I thought it should be adjusting according to screen size and that's why I designed it that way. But if the height and width don't change and I let the width be 100% always, then wont it be giving horizontal scrollbar?
0@palgrammingPosted over 3 years ago@TSPraneeth if you transition from the mobile layout to the desktop layout when the browser is wide enough to accept the desktop layout then you will never get a horizontal scroll bar
0
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