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 using grid html and css

@dazzlerabhi30800

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


Need feedback the text the items are breaking on when zooming out and in.

Community feedback

Hania B. 1,360

@techanthere

Posted

The problem happening because you have said explicit height of 18rem on all the cards which is not required. Some other points:

  • The height values of 100% are not required, height will fit the content by default. In fact explicit value of height for div is not required at all.
  • Level 1 heading (h1) should be used only once because it is used for the whole content like Join our community is the only one that fits the rule. Replace the h1 with h2 while keeping the same styling
  • Instead of setting margin-top and margin-bottom value on the container class, use padding on body which will align the content in the center both vertically and horizontally.
  • Also remove the height from the anchor tag and instead set padding for vertical and horizontal alignment.
  • The div with class answer-container should be an unordered list (ul) while p tag will be replaced by li tags which is logically correct and follows the semantics approach.

Good luck!

Marked as helpful

0

@dazzlerabhi30800

Posted

@techanthere Thank you for the feedback it helped! .😁

0
Hania B. 1,360

@techanthere

Posted

@dazzlerabhi30800 if it's been really helpful please mark it as helpful as well :)

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