
Design comparison
Solution retrospective
- The difficulty i encountered was how to organize my html and css?
- When I have a large template how to structure my html and css codes?
Community feedback
- @correlucasPosted over 2 years ago
👾Hello @alseny-diallo, congratulations on your new solution!
I’ve some suggestions for you:
1.Fix the alignment of the whole content using
flex
andmin-height
to manage the vertical alignment and make everything centered.First of all putmin-height: 100vh
to thebody
to make the body display 100% of the viewport height (this makes the container align to the height size that's now 100% of the screen height) size anddisplay: flex
eflex-direction: column
to align the child element (the container) vertically using the body as reference.body { min-height: 100vh; font-size: 13px; background-color: hsl(210deg, 46%, 95%); font-family: "Barlow Semi Condensed", sans-serif; font-weight: 500; display: flex; align-items: center; justify-content: center; }
2.You’re in the right track I can see that you’ve used the majority semantic tags possible for this challenge, the only block you’ve missed is the paragraph containing the
quote text
you can improve the accessibility there using<blockquote>
to indicate to screen readers that the content inside that paragraph is a quote.✌️ I hope this helps you and happy coding!
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