Responsive card and experimenting with CSS variables
Design comparison
Solution retrospective
It went faster than before. Differently, I may not use as many divs likely. And while this exercise was mostly to help me practice CSS variables, in a project this small wasn't the best choice.
What challenges did you encounter, and how did you overcome them?By not accounting for the size of the margins and paddings in flex extra spaces were added which took me a while to figure out and debug.
Community feedback
- @newspaceracerPosted 3 days ago
I forgot to add a main element to contain all the other stuff within so I think that's the accessibility issue, but I was out of time and I didn't want to refactor since I was using body as my container element for the card. Using main I would have had to make sure that main was centered or the same size as body and then center everything within main (I think).
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