Design comparison
Solution retrospective
Greetings, Web developers!
I hope I did a decent job on the CSS and BEM naming convention. Feedback is appreciated.
Thanksโ๏ธ
Community feedback
- @correlucasPosted about 2 years ago
๐พHello Karthi Krishnamurthi, congratulations for your first solution and ๐ welcome to the Frontend Mentor Coding Community!
Your component is just perfect and super flexible, this is amazing! You can improve it giving the
main
a margin of 24px to avoid the container touching the screen edges when it scales down and also reducing a bit the html.You can build this with a simple approach, without using unnecessary divs, all you need is a single
<main>
or<div>
to keep all the content inside, and nothing more. The ideal structure is thediv
and only the image, heading and paragraph.See the structure below:
<body> <main> <img> <h1></h1> <p></p> </main> </body>
๐ I hope this helps you and happy coding!
Marked as helpful1
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