Responsive 4 card feature section using CSS Grid & Flexbox
Design comparison
Solution retrospective
Hi everyone ! I feel like I write way more code than necessary when trying to align everything, setting margins height or width to auto/100%/etc. I always end up being a bit lost. So any comment is appreciated!
Community feedback
- @ApplePieGiraffePosted almost 3 years ago
Greetings, Yunie08! š
Nice work on this challenge! š Overall, your solution looks pretty good and responds well! š
I suggest,
- Using a single heading tag for the title of the page. That's because the title of the page is really a single title (not two separate titles) and so just one heading tag should be enough. You can style the second half of the title differently by wrapping it a
span
tag and targeting thatspan
in your CSS to override its styles. - Adding a max-width to the feature cards on the page so that they aren't so wide when the layout of the site first switches from desktop to mobile.
- Perhaps using
article
tags for the feature cards in this solution since they are self-contained elements. IDK... that might make your HTML a little more semantic?
Hope you find those couple of tips helpful. š
Keep coding (and happy coding, too)! š
Marked as helpful0 - Using a single heading tag for the title of the page. That's because the title of the page is really a single title (not two separate titles) and so just one heading tag should be enough. You can style the second half of the title differently by wrapping it a
- @Yunie08Posted almost 3 years ago
Hello AplePieGiraffe !
Thanks a lot, it really helps!
I'll definitely look into the suggestions you made and modify my code. The second point was kind of a choice though, but indeed probably not the wisest one. šHappy codind to you too, and thanks again!
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