Responsive Product View Card with CSS Flex
Design comparison
Solution retrospective
Your feedback is welcomed
Making the page responsive across multiple devices is a daunting task. However, I'm able to find my way around it. You can check my code and tell me how I could have done it better. thanks.
Community feedback
- @romila2003Posted over 2 years ago
Hi Olalekan,
Congratulations 🎉 for completing this challenge, it was a great attempt.
Some issues I noticed within your design and code include:
- It is best practice to wrap the main content within the
main
tag e.g.<main class="container"></main>
. - You are missing the
font-family
property within your texts which is provided within the style guide. - The button is missing the
cursor
property e.g.cursor: pointer;
- The color of the button is different however when you hover over the button, it shows the same color as your current button color.
- Your button is missing the
type
attribute e.g.<button type="submit" class="btn"></button>
- Regarding the responsiveness of the card, it looks good however you do not need many media queries, especially within this project therefore It would be fine to have 1 or 2 media queries to change the layout when the card shifts into the desktop screen.
Overall, great attempt and wish you the best of luck for your future projects so keep coding 👍.
Marked as helpful1@OlaOluwalekanPosted over 2 years ago@romila2003 Thanks for the feedback. I really appreciate. I'll heed to your recommendations
1 - It is best practice to wrap the main content within the
- @satyammjhaPosted over 2 years ago
Great attempt!! But I have a few suggestions for you:-
- It would be best if you had increased the height of the main div so there would be some space below the button.
- Image height should be adjusted manually so that it will resemble the design provided.
- Use
cursor: pointer;
for the button so that cursor will change on hovering over the button. - The font used for PERFUME is not the same as given in the style guide.
- Increase the letter spacing of the word PERFUME and you can use google fonts to import the given fonts to your CSS.
Hope these tips will help you. Happy Coding 🤗✌🏻.
Marked as helpful0@OlaOluwalekanPosted over 2 years ago@satyammjha Thanks, bro. I actually forgot to add the pointer cursor.
1
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