Design comparison
Community feedback
- @Ezekiel225Posted 9 months ago
Hello there 👋 @io-oseinana.
Good job on completing the challenge !
Your project looks really good!
I have a suggestion about your code that might interest you.
There is an very useful browser extension called Perfect Pixel that allow you compare with the design image and thus see the exact dimensions. I recommend it to you.
Consider adding a min-height of 100vh to the body element so as to centralize your project.
body { min-height: 100vh; align-items: center; display: flex; justify-content: center; }
I hope this suggestion is useful for future projects.
Other than that, great job!
Happy coding.
Marked as helpful1@io-oseinanaPosted 9 months agoThank you for your suggestion @Ezekiel225 I'll make the changes soon
0 - @Islandstone89Posted 9 months ago
HTML:
-
The image and icon are decorative, so the alt text must be empty:
alt=""
. -
"Cancel Order" would likely trigger an action, so it should be a
<button>
. -
.attribution
should be a<footer>
, and its text must be wrapped in a<p>
. It must also be moved outside of the<main>
.
CSS:
-
Performance-wise, it's better to link fonts in the
<head>
of the HTML than using@import
. -
It's good practice to include a CSS Reset at the top.
-
Move the properties on main over to
body
. Changeheight
tomin-height
, and addgap: 2rem
to create space between the main and the footer. -
Remove all widths and heights.
-
Remove margin on image.
-
Remove
justify-content: center
on the card. -
Add some
padding
on.order__card__content
. -
Media queries should be in rem.
-
Change font size on
attribution
frompx
torem
.
Marked as helpful0 -
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