Design comparison
SolutionDesign
Community feedback
- @djamkennyPosted 10 months ago
Your code: body { font-family: "Outfit", sans-serif; font-weight: 700; font-size: 16px; line-height: 1.6; color: hsl(220, 15%, 55%); margin: 8; background-color: hsl(212, 45%, 89%); }
But you can add this: body { display: flex; justify-content: center; align-item: center; }
also, I think you should not use line-height in the body because you are only targeting the <p> and or <h1> elements.
I have noticed you used <div> all and I suggest reading about new semantic elements which is HTML5...it awesome check it out
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