Design comparison
Solution retrospective
Anything, I'm open for improvements!. I struggle so much with making the text exactly how wrapped/aligned as in the design.
Community feedback
- @kodan96Posted 6 months ago
hi there! ๐
you can apply
max-width
inch
to your elements:p { max-width: 25ch; }
in this example all
<p>
elements will wrap to a new line after 25 characters, without causing word breaks, so entire words will wrap, like usually.Hope this was helpful ๐
Good luck and happy coding! ๐ช
1 - @danielmrz-devPosted 6 months ago
Hello there!
Congrats on completing the challenge! โ
Your solution looks great!
I have a suggestion for improvement:
๐ Think about using
<main>
to wrap your main content instead of<div>
.Imagine
<div>
and<span>
in HTML as basic containers. They're good for holding stuff, but they don't tell us much about what's inside or its purpose on the webpage.This change might not have impact on how your page looks, but it'll make your HTML code clearer and help with SEO and accessibility.
Hope that's helpful!
Keep up the great work!
1
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