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

CSS, Flex and HTML

@Wandesanguine

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


I'm so glad I just discovered my problem with media queries. I used to code this; @media (min-width =768px){ mycode:property }. Instead of this; @media (min-width =768px){ mycode:property }. I was so fraustruated that i had to drop my PC and do something fun to clear my head. Love to every developers out there and those that have been taking time to comment on my solutions. Love from Wande. Happy coding everyone.

Community feedback

@SurajHadage

Posted

Use Paint app to get accurate dimensions of design. I have suggestion to shorten your HTML :

<main><section><h1><h2><p></section><section><h3><div><span>29$</span><span>text</span></div><p><button></section><section><h3><ul></ul></section></main> TO put your <main> element center, use body {display; flex; align & justify content : center;}
0
Holat 640

@Holat

Posted

You can always center a static page by making the container flex

.container{ width: 100%; min-height: 100vh !important; display: flex; align-items: center; justify-content:center; }

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