3 column card using CSS Flexbox and Media Queries
Design comparison
Solution retrospective
This was my first time using CSS flexbox to build a website but I used media queries to make it fairly responsive to most screen sizes. Any feedback on ways to make this website more responsive or accessible would be helpful. Thanks! :)
Update: Thank you all for the feedback so far. I have addressed the accessibility issues and looked into the resources that were recommended.
Community feedback
- @muhammadshajjarPosted over 3 years ago
Great work! but always try to make it better,
To overcome your accessibility issue you would need to add some semantic markers to designate sections of the page as the header, navigation, main content, and footer e.g:
<header> //// </header> <main> //// </main>
Thanks,
Marked as helpful1@rachanahegdePosted over 3 years ago@muhammadshajjar Ohh okay, I wasn't sure how to address the accessibility issues so thank you for the advice. I appreciate it.
0 - @afrusselPosted over 3 years ago
Hi, well done. As a first work is awesome.
You can use a small library for flexbox named flexboxgrid.com. it helps you to make your site responsive with less css code.Marked as helpful1@rachanahegdePosted over 3 years ago@afrussel Hi Ahmed, thank you! I will look into it and try to use it for my next project.
0 - @ratan17Posted over 3 years ago
may i know why you didn't go flex properties to center your .cards container ?
1@rachanahegdePosted over 3 years ago@ratan17 I attempted this but it caused the container to take up the entire web page. To make it look more like the design, I altered the margins instead.
0@ratan17Posted over 3 years ago@rachanahegde alright. you could have set flex properties to body element instead to center your .cards container. anyways nice approach and keep it up!
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