Design comparison
SolutionDesign
Solution retrospective
I would greatly appreciate any sort of feedback on how to make my code more readable, efficient, or closer to the initial design.
I'm not sure exactly about making this partciular exercise more responsive, as it seemed to be responsive "automatically" in the browser, but maybe I'm wrong about this?
Community feedback
- @basitkoraiPosted over 1 year ago
Hi, my friend. π I'm so happy that you have completed the project
I have some suggestions to make it better.
- Instead of
height: 100%
go formin-height: 100vh;
in the.container
element for centering elements. Why don't you try this for centering everything insteadflex
.
display: grid; place-items: center; min-height: 100vh;
- Remove
height
from other elements instead usepadding
to scale them vertically. Try using this logical property,padding-block
. - You should opt for the
<article>
tag for your component instead of cramming everything in the<main>
tag. (for making it accessible for the screen readers) - Give your main image an
alt="describe the image"
. (for better accessibility) - Decrease the
padding
around your image, to match the design further. - Instead of this
<p>Improve your front...</p>
go for<h1>
tag. (every webpage must have at least one) - For the
font-size
, opt for therem units
instead of pixels. video resource
Upvote the comment if it helps
I hope these tips will help you improve your code.π
Happy CodingβοΈ
Marked as helpful2 - Instead of
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