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

Responsive Product Preview Card

P

@meandrewaprianto

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?

Flexbox and so helpful when design for Mobile-First design. and with media screen only a few code to make it responsive

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

add animate with css, easy with transition. to make smooth movement from desktop design to mobile design

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

I'm open for reviews and suggestions.

Community feedback

Boris 2,870

@mkboris

Posted

Nice work meandrewaprianto, here are some suggestions

  • Responsive images are handled using the picture element. Using CSS to hide and show images to display differently on various screen sizes is not part of the best practices.
  • Consider using a modern CSS reset at the start of the styles in every project. Like this one Modern CSS Reset. This will help reset a list of default browser styles.
  • It's best practice linking Google fonts directly in the HTML head section rather than directly in your CSS file as it enables asynchronous downloading, improving page load times.
  • Font-size should be written in rem not px. This article explains it better Why font-size must NEVER be in pixels.
  • Media queries should be defined in rem or em not px.

Hope this helps

Marked as helpful

1

P

@meandrewaprianto

Posted

@mkboris wow. i never expected that picture are available in html, rather using img element , i will try this into my next project. thank you

1

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