Single price grid component using Html Css

Solution retrospective
I m not sure about the strategy i used to set the sizes in the body and in the item to made them responsive. Is there a better way?
body { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; }
.main-header { min-height: 80vh; width: 50%; margin: 0 auto; display: grid; grid-template-areas: "title title" "price info"; grid-template-rows: 45% 55%; grid-template-columns: 50% 50%; }
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on gomezlucas's solution.
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