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 Product Card Using Flexbox

Stephanieβ€’ 50

@mekoness

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


I just started working with media queries and I am still struggling with the breakpoint from mobile to desktop layout. Should I add an in-between breakpoint as well for medium sized screens as well?

Community feedback

Adebisiβ€’ 330

@adebisiabdussamad

Posted

Cheers Stephanie πŸ₯‚ on completing this challenge.. .

An img element must have an alt attribute. This enables physical challenge to understand the image better.

-This is your code: <img src=/images/icon-cart.svg>

-This is how it should be: <img src=/images/icon-cart.svg>the second one with the alt attritube. to know more about the alt attribute you can click this link Img element

And also for the media queries click this

You need to apply the alt for all of your images...your code is really amazing...

hope you find this helpful...

Happy coding!!!πŸ‘ŒπŸ‘

1
Manish Mandalβ€’ 650

@manishdevelops

Posted

hi Stephanie, the application of Media Queries will depend on your content, Whenever you feel there is need to add Media Query you can add. But you should design mobile first and after that you can use media queries as required. generally I use maximum 2 break points. max(), min(), clamp(), calc() these are the functions which can minimize the Media Query break points So you should try them.

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