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

Single price grid component master CSS Grid

Mohsin 60

@Mohsin-93

Desktop design screenshot for the Single price grid component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Appreciate any helpful comments

Community feedback

Hassia Issah 50,650

@Hassiai

Posted

Use the colors that are given the styleguide.md found the challenge zip folder you downloaded.

To center .card-main on the page using flexbox, add justify-content: center; align-items: center; to the body and remove align-content from the body. it display: grid that have align-content not flex-box.

Give the padding, margin, width and height a fixed value instead of a percentage value. Use rem or em as unit for the padding, margin, width and preferably rem for the font-size for more on CSS units watch this https://youtu.be/N5wpD9Ov_To

Hope am helpful

Well done for completing this challenge. HAPPY CODING

0

Mohsin 60

@Mohsin-93

Posted

@Hassiai Hi I have used all the four colors from the styleguide.md, but there no color there for the last card and the shadows.

I'll try the justify-content: center; align-items: center; I've been very used to using margin: auto; so I didn't think to use justify-content: center; .

I watched that video on Kevin's channel already, I will change the padding and margin to rem, and for width it was Kevin's suggestion to use percentages for widths.

Thank you for your comment

1

@Fanou59

Posted

@Mohsin-93

Hi ! you can't find the color because it's not really a color :) In fact, you must add a layer in #FFF with 15% of opacity.

You can try this for this challenge.

Hope am helpful :)

Marked as helpful

1
Mohsin 60

@Mohsin-93

Posted

@Fanou59 Thank you for pointing out I'll try it out.

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