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

Mobile first single price grid component

Elaineβ€’ 11,420

@elaineleung

Desktop design screenshot for the Single price grid component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

Lucas πŸ‘Ύβ€’ 104,560

@correlucas

Posted

πŸ‘ΎHello Elaine, congratulations for your solution!

I was checking this old solution! To see if I find something to improve, but its hard, all of your old solutions are just fine!

πŸ•΅οΈThen I was thinking that for the mobile version, to avoid the big lateral gap, you can let the container grow and resize with the screen, but to do that I had to make off a lots of property to see what was avoiding the container to grow full width minus the margin/padding.

Then I realized that the only line of code that was avoiding the container to fit the screen and scale normally was a single width. See the code below:

.component {
    justify-content: center;
    height: min-content;
    border-radius: 0.4em;
    box-shadow: 1px 10px 20px hsl(212deg 23% 85%);
    /* width: 318px; */
}

Anyway, great solution as always here, this minimum detail isn't even important!

Marked as helpful

1

Elaineβ€’ 11,420

@elaineleung

Posted

@correlucas Thank you Lucas! Yes, this was one of the earlier ones I did where I only made the 375px and 1440px screen sizes optimal. Good that you helped me locate the lines already and save me the work when I do my updates 😊

1

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