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

Product preview card component

@CodeXsubham

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


I was finding difficulty while positioning the cart button to the left ...

Community feedback

@amalkarim

Posted

Hi Subham,

Congratulations for completing the challenge!

You could add this style to make the cart icon placed in the right position:

.perfume_content--button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

Also, you could add @media queries to make different views on mobile device. If you're unsure about what media queries are, you can read about it in this CSS Tricks article.

Hope this helps!

Marked as helpful

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