Submitted 4 months ago
Responsive Product Preview Card
@meandrewaprianto
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
- @mkborisPosted 4 months ago
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
orem
not px.
Hope this helps
Marked as helpful1@meandrewapriantoPosted 4 months ago@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 - Responsive images are handled using the
Please log in to post a comment
Log in with GitHubJoin 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