Product preview card using HTML CSS Flex Box Model Media Query

Solution retrospective
I learned how to use the root: {}
selector and media query, but I still need to learn more about media query for responsive web.
I still need to learn more about media query for responsive web.
What specific areas of your project would you like help with?I think I would love to get feedback for all of my code from HTML structure to CSS styles, especially the responsive design.
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@kaamiik
A few notes:
- The word perfume on your page appears to be used as a tag, so it would be better to use a
p
tag instead of anh2
tag.
- Try tackling this challenge using the grid system as well. It’s much easier and the results will likely be better. Plus, it's a great practice exercise.
- The Add to cart element should be a
button
in a larger context, as you don't want to change the webpage but rather perform an action.
- Regarding your button's styling, if you narrow your page, the text starts to wrap due to the horizontal padding. This can be fixed by using only vertical padding, like
15px 0
, and addingjustify-content: center;
.
Marked as helpful - The word perfume on your page appears to be used as a tag, so it would be better to use a
- @yuriinyk
- Semantic HTML: Good use of semantic tags like <main>, <article>, and <picture>. Consider adding aria-label for better accessibility. 2. Accessibility: Improve the :focus state visibility and add descriptive alt text for images. 3. Responsive Layout: Looks good on mobile and desktop. Test on tablets and refine typography scaling with clamp(). 4. Code Structure: Well-organized CSS with variables. Add comments for better readability and separate reusable styles from layout-specific ones. 5. Design Match: Faithful to typical product card designs. Double-check spacing and padding for pixel-perfect accuracy.
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