Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 1 year ago

Single Price Grid Component

Daniyal Master•290
@daniyalmaster693
A solution to the Single price grid component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I started by creating all the HTML elements and assigning them classes. I then moved on to the CSS, beginning with importing fonts and adding a background color for the entire webpage. Next, I focused on designing the top card, paying attention to details such as padding, margins, and font sizes. Afterwards, I worked on the left and right bottom cards, applying their respective background colors, text styles, and padding amounts. Moving on to the layout, I centered the entire container and spent some time trying to position the two cards next to each other. Furthermore, I used knowledge from prior projects and applied it to this one to achieve the design I was looking for by adding a bottom class and then adding margin: auto, display: flex, and some heigh and width. Overall, this project allowed me to revist some old things that I haven't used much and further improve my flexbox skills. Once I finished, I tested the website on multiple browsers and used the built-in device size emulation feature to view what the website would look like on different devices.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Daniyal Master'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
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License