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

Product Preview Card using CSS Grid

Adeola Ganiu 1,320

@Deolabest

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'm really having troubles with the media queries. Please any suggestions on how make this project responsive on the mobile?

Community feedback

zofia-mm 160

@zofia-mm

Posted

I'm no expert, but I've managed to make my media queries work. If you want to take a closer look - check out my solution to this very challenge! And if you have any specific question - hmu, will do my best to answer.

But here's a quick example:

@media only screen and ( max-width: 500px )
{  /* mobile */
    .main-column
    {
         flex-direction: column;
         margin-left: 15px;
         margin-right: 15px;
    }
}
@media only screen and ( min-width: 501px )
{  /* desktop */
    .main-column
    {
         flex-direction: row;
         width: 22rem;
    }
}
.main-column
{
    /* things like background color and styling */
}

P.S. I felt really insprired by the way you've organized your css file.

P.P.S. Great job with the design! ;)

Marked as helpful

0
Adeola Ganiu 1,320

@Deolabest

Posted

Thanks for your contribution

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