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

@Alijebbouri

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


what is your opinion ?

Community feedback

Adriano 34,090

@AdrianoEscarabote

Posted

Hi Alijebbouri, how are you?

I really liked the result of your project, but I have some tips that I think you will enjoy:

To align a child element of body in the center of the screen, we can use flex-box or grid, in this case the most appropriate would be flex-box, and we can do it like this:

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min height: 100vh;
}

I noticed that you didn't use a tag on this page, every web page needs to have a main tag, to inform what the main content of this page is, as this page has only one component, we can wrap all the code with a main tag

The rest is great!

I hope it helps... 👍

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