Design comparison
Solution retrospective
Getting it done. Learning flexbox and grid to create this was hard but I got through it
What challenges did you encounter, and how did you overcome them?Learn Flexbox and grid. It wasn't intuitive in the beginning but it started making sense
What specific areas of your project would you like help with?Refactoring is always an ask and just thoughts on how I could've done it differently.
Community feedback
- @huyphan2210Posted 26 days ago
Hi, @wpittman06,
I reviewed your solution and have a few suggestions:
CSS File Linking:
You're linking
font.css
andboilerplate.css
incorrectly, causing 404 - Not Found errors in DevTools. Since yourstyle.css
is located in the same folder, consider importing them like this:@import url("./global/fonts.css"); @import url("./global/boilerplate.css");
This should resolve the issue and display your layout as intended.
min-height
onbody
:I noticed you set
min-height: calc(100vh - .1px)
on thebody
. Why not usemin-height: 100vh
? Was there a specific reason for this adjustment?Semantic HTML Improvements:
Consider using more semantic HTML elements to improve structure and accessibility:
- Replace
.main-Container
with<main>
. - Use
<section>
for.container-left
and.container-right
. - "Perfume" seems more like a label for the card (
.main-Container
) or possibly your top heading (<h1>
). Consider researching how to use<label>
properly. - Since the prices don't appear to be a list, avoid using
<ul>
and<li>
. Instead, wrap them in a<section>
and use<span>
for individual prices.
Hope this helps!
0 - Replace
- @tiedej2000Posted 27 days ago
making prices a list adds clutter, the button should not have the same bg color as the site. picture is also way to big. try to add a wrapper around the preview to scale down the whole thing.
0
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