Skip to content
  • Learning paths
  • Challenges
  • Solutions
  • Articles
  • Unlock Pro
  • Log in with GitHub
Submitted over 2 years ago

flex

Sahiru•220
@bhatsahil13579
Preview site (opens in new tab)View code (opens in new tab)
Desktop design screenshot for the Product preview card component coding challenge
This is a solution for...Product preview card component
  • HTML
  • CSS
1newbie
View challenge

Design comparison

SolutionDesign

Community feedback

  • Adriano•42,840
    @AdrianoEscarabotePosted over 2 years ago

    Hello everything is fine?

    I looked at your project here and saw that it is not centered, but I have a tip for you about this:

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

    By adding this code to your project, our main tag will be centered.

    Hope it helps... 👍

    Marked as helpful
    1

Please log in to post a comment

Log in with GitHub

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

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub