3 Column Preview Card using HTML, CSS and CSS Grid

Solution retrospective
This was my first attempt using CSS Grid. I quite like how easy it is to change the layout using media queries.
I do have two questions though:
-
Regarding media queries, is it better practice to put them at the end of your CSS document, or under the section that it affects, like I've done with this challenge?
-
In this challenge, I've disguised an anchor tag as a button. Is it better practice to rather use
<button></button>
and nest thea
tag in that? I find the styling to be more difficult doing it that way though, but I worry later down the line I won't be able to "submit" data.
Thanks for the help!
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Wesley's solution.
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