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 landing using flex box and CSS Grid

@noecortez

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


Tuve dificultades para hacerlo responsivo, además, no sabía el tamáño especifico de la card o de las imagenes.

Community feedback

@vitoraragone

Posted

Hi Noe!

You can use display: grid at the div .card instead of display: flex.

I suggest you to make something like this:

      .card {
        display: grid;
        grid-template-columns: 1fr 1fr;
      }

This will make the layout easily responsive. Also, I suggest you to create a css file. Isn't the case in this challenge, but it makes the code easier to explore. In bigger projects, a huge style in html would be very difficult to read.

Hope this helps you. ;)

(I'm new at this whole thing. Feel free to correct me).

Hope this helps you.

Marked as helpful

1

@noecortez

Posted

@vitoraragone Thanks a lot. I applied your suggestion and it looks phenomenal. Thank you.

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