Design comparison
Solution retrospective
I tweaked the margins of several elements in the website but I couldn't achieve pixel-perfect distribution compared to the design provided in the challenge. Maybe there is a way I didn't know that could have made it easier.
I would appreciate any suggestion for that :)
Community feedback
- @VCaramesPosted about 2 years ago
Hey there! 👋 Here are some suggestions to help improve your code:
-
The purpose of the Main Element is to identify the main content of your page. It is not the container of you component. After the main element, you want add a container to wrap you separate components in.
-
The Alt Tag Description for the image needs to be improved upon. You want to describe what the image is; they need to be readable. Assume you’re describing the image to someone.
-
This challenges requires the use of two images 🎑 for different breakpoints. The Picture Element will facilitate this.
Here is an example of how it works: EXAMPLE
Syntax:
<picture> <source media="(min-width: )" srcset=""> <img src="" alt=""> </picture>
More Info:
https://www.w3schools.com/html/html_images_picture.asp
https://web.dev/learn/design/picture-element/
- The only heading in this challenge is the name of the perfume, “Gabrielle Essence Eau De Parfum” . The rest of the text should be wrapped in a Paragraph Element.
If you have any questions or need further clarification, let me know.
Happy Coding! 👻🎃
Marked as helpful1@enriquesbPosted about 2 years ago@vcarames Thank you very much for all this info. I'll read it and apply it!
0 -
- @mizek1Posted about 2 years ago
This is an almost perfect design, congrats. My way to achieve an almost pixel-perfect is set font-size on body (that is informed on style-guide) and work with relative sizes (%, rem, em) instead of pixels, I think it's easier than go pixel to pixel to find the perfect size.
Marked as helpful1
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