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 preview card using Bootstrap 5

@harnettd

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


  • This is a bit of a technical one, but here goes: for responsiveness, I used Bootstrap 5 which has its smallest breakpoint set to 576px. However, in my styles.css file, I had to use a breakpoint of 620px to get a seemless transition between desktop and mobile. I found the 620px value by trial and error. Initially, I'd assumed that I needed a breakpoint of 575px to match up with Bootstrap. Can anyone explain the discrepancy? Thanks in advance.

Community feedback

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