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

Price Grid Component

@Benjamin-odekina

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


This challenge made me revisit using CSS grid for layout ah ah ah

Community feedback

Mahesh Awajiā€¢ 30

@MaheshAwaji

Posted

Hello @Benjamin-odekina I hope you are doing well.

-Well-structured HTML with clear content.

-Effective use of semantic elements like <h2> and <p>.

Includes essential meta tags for accessibility.

Links to an external stylesheet for styling.

Improvement suggestions:

-Add alt text to the favicon image.

-Ensure all elements have proper closing tags.

0
Daniel šŸ›øā€¢ 44,230

@danielmrz-dev

Posted

Hello @Benjamin-odekina!

Your project looks great!

  • Using margin is not the best option to center an element. Here's a very efficient (and better) way to place an element in the middle of the page both vertically and horizontally:

šŸ“Œ Apply this to the body (in order to work properly, don't use position or margins):

body {
    min-height: 100vh;
    display: flex;  /* it works with grid too  */
    justify-content: center;
    align-items: center;
}

I hope it helps!

Other than that, great job!

0
anass-lamiriā€¢ 320

@Anass-Lamiri

Posted

Hi, you did a great job on your challenge, one thing I can suggest is to center your design horizontally on the screen, you can do achieve this by adding this code to your body element:

    min-height: 100vh;
    display: flex;

what this code does is make the body height identical to the screen height which gives you this desired effect.

I hope you find this feedback 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