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 card component with flexbox

@Ranadheerm6

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


Solved this challenge using plain html and css with the help of flexbox. Please have a look at my code and give me tips to improve.

Community feedback

P. Ricardo 2,370

@pRicard0

Posted

Some HTML tips

  • Instead of using span, you can use em and s. The <em> tag is used to define emphasized text. The <s> tag specifies text that is no longer correct, accurate or relevant. The text will be displayed with a line through it. em for emphasis and s for strikethrough
  • You can use the tag <main> instead of the div with the "main" class
  • You can use h1 for the title and h2 for subtitle.

Some CSS tips

  • You can add some effects to the button like....
button:hover {
     transform: scaleY(1.1);
}

and...

button {
    cursor: pointer;
    transition: 150ms;
}

Marked as helpful

1

@Ranadheerm6

Posted

@pRicard0 Thank you for the feedback :) Will keep these in mind

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