@correlucas
Posted
๐พ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 the div
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 helpful