Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Four card feature section (only HTML5 and CSS3)

@andrewabreur

Desktop design screenshot for the Four card feature section coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


This is my first Frontend Mentor challenge and my first project with HTML5 and CSS3. I would appreciate if you could indicate problems and improvements to my code. Thank you!

Community feedback

Alex 1,090

@AlexBueckig

Posted

Hi @andrewabreur,

your solutin looks great! There is only one small thing I'd change. If the screen gets really small the 4 containers get squished a lot before the media query kicks in and it looks kind of strange...

An easy work-around for this would be to get rid of your width: 70% and only use max-width: 1000px; in your .features class instead! 😃 This will free up some room to the left and right on smaller screens to make it less squishy.

If you want to get some whitespace between your elements and the edge of the viewport you can also just add a little bit of extra padding on the left and right aswell.

2

@andrewabreur

Posted

Hi @AlexBueckig,

Thanks for your answer I have already applied it to the code.

0
P
Matt Studdert 13,611

@mattstuddert

Posted

Hey Andrew, awesome work on this and congrats on submitting your first solution! Your project looks really good 👍

The HTML is great. The only couple of suggestions I'd have are with your CSS. First of all, I'd recommend reducing the specificity of some of your selectors. For example, .features-cards .card .card-text could be reduced to .card-text.

Also, have you ever tried building using min-width media queries instead of max-width? Working in this mobile-first approach has the benefit of reducing the styles mobile users load in. Many developers also find it a simpler workflow.

I hope these tips help. Let me know if you have any questions!

1

Please log in to post a comment

Log in with GitHub
Discord logo

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