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

html css grid webpage

P
Clyo 130

@clyo

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


What are you most proud of, and what would you do differently next time?

Happy I was able to use grid to get the layout somewhat resembling the intended design.

What challenges did you encounter, and how did you overcome them?

n/a

What specific areas of your project would you like help with?

Found it difficult to figure out how to size the relevant cards and how they should be positioned using grid. I ended up having to use margin to get them into the desired positions but not sure if this is the best approach since grid is being used.

Community feedback

@Laytix

Posted

Good job on making it look good on the desktop, though there are issues with how it looks on any viewport smaller than 768px.

Looking at your code putting the titleCard div in the same div as your grid just increases your headache. Put it outside so that all that you're dealing with would just be the card1-4.

For the grid, you went with a 6(col) by 3(row). I would advise 3(col) * 4(row) instead, would make it easier to place supervisor and calculator in the middle, and learn about grid-areas. Trust me grid-areas would make your life way easier.

In viewports less than 375 just plug this

@media screen and (max-width: 376px) {
    main{
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }
}

Youre doing fine mate, just need to responsive.

Marked as helpful

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