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

Responsive Four Card Feature

P
KurtJFโ€ข 150

@KurtJF

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


Still not confident about how I use CSS. I feel like my code has a lot of unnecessary input.

  • Can my CSS be more efficient and clean?

  • Is there a set breakpoint for responsive media query?

Community feedback

Lucas ๐Ÿ‘พโ€ข 104,420

@correlucas

Posted

๐Ÿ‘พHello Kurt, congratulations for your solution!

Answering your question:

These values Mobile: 375px / Desktop: 1440px are not necessarily when you should set the breakpoints for the media query, are the resolutions which that design were created. The right moment you should set a media query is when the content is not fitting the screen, for example, you've set the media query vertically in circa 1000px but your component horizontally could works for longer since the cards are responsive... my advice for you is to set this media query a little bit later or let the card content grow more when its mobile, note that theres a huge lateral gap for the mobile version.

Hope it helps and happy coding

0
...โ€ข 600

@HatimHJ

Posted

congratulations on finish the challenge

Is there a set breakpoint for responsive media query?

  • Mobile: 375px
  • Desktop: 1440px

when you code you should start with mobile then you adjust for desktop. this how i do it and it work ok for me

0

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