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

OL 40

@OlamideLanre

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


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

I am most proud of the responsiveness because I used the mobile first approach. This approach reduced the line of codes I have in my css media query.

What challenges did you encounter, and how did you overcome them?

Changing the image based on the screen size was one of the challenge I faced. But, I over came by searching on the internet and finding the right css property to achieve what I was after

What specific areas of your project would you like help with?

The cart icon in the add to cart button isn't fixed on tablet to desktop but it is on mobile screen. Here's the CSS for tablet/desktop .cart { position: absolute; right: 44%; margin-top: 30px; } On mobile its in the right position but on tablet/desktop screen size it gives space between the icon and "add to cart" text. How do I fix this issue?

Community feedback

P
Craowx 180

@Craowx

Posted

I would recommend checking out css variables for cleaner code. I think it's a good try to replicate the project even though it's not pixel perfect it's your version of it. Good job, try practicing responsiveness a bit more

0

OL 40

@OlamideLanre

Posted

@Craowx alright, Thank you.

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