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

3-column-preview-card-component-main using HTML and CSS

@Saibramarambika

Desktop design screenshot for the 3-column preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Feedback would be appreciated! 😁

Community feedback

@AgataLiberska

Posted

Hi Sai, nice work! A few quick changes could polish it up:

  • Double check your media query in the browser, 600px is not quite enough to fit the three parts next to each other
  • It would be a good idea to put all your cards in a container (and don't forget your landmarks! :)) and set a max-width to that container, so the content doesn't stretch across the whole screen
  • You can also then set your display: grid on that container and make sure that the value of grid-template-columns is correct (it should be repeat(3,1fr). Then you could get rid of the grid-columns property on the individual cards (they will each take one column by default).
  • You could also move the border-radius property on to that container and not have to repeat it (although you may need to hide the overflow for the radius to show up)
  • The buttons could use some hover styles to show the users that they're interactive elements.

Hope this helps, happy coding! :)

Marked as helpful

0

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