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

Item-card Challenge

Yusuf 90

@yusufskebbe

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

P
Abbas Sher 440

@Abbassher55

Posted

Hello, great job overall! However, I noticed a couple of issues:

  • In the design, there is no border radius applied to the right side of the image and applied to both left top and left bottom side ( You have applied to the top left and top right ).

  • In the active state of the design, the "Add to Cart" button should change its background color to a darker shade of green.

Apart from that, you have done a good job.

0

Yusuf 90

@yusufskebbe

Posted

Thank you for feedbaxk i add the hover effect and push it to my github , Mr.Abbas i wonder if you did this challenge how did you manage this width and height for image and the card , do you have an idea because for me it took alot of time @Abbassher55

0
P
Abbas Sher 440

@Abbassher55

Posted

@yusufskebbe

I will work on it now when i have time .

First i will center a div which have class card and then i will divide the card into two divs with equal size. Now when u put the image in the first div u can add width 100% property so the image will be inside that div and will not overflow also if the image doesnt look good so u can add object-fit property with value either cover or contain.

This is some idea for desktop sizes and u can use media queries for other screens.

I will work on it soon so follow me to see this and i will use tailwind css as i am currently learning that

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