@VCarames
Posted
Hey, some suggestions to improve you code:
- To give you HTML code structure, you want to set up your code in the following manner (only did parent containers):
<body>
<main>
<article class="card-container”>
</article>
</main>
</body>
The Main Element identifies the main content of the document.
While the Article Element will serve as the card’s container, because the card represents a complete, or self-contained, section of content that is, in principle, independently reusable.
More info:
https://web.dev/learn/html/headings-and-sections/
-
Give your .container a
max-width: 320px
to make it the correct width and make it responsive. -
There is no need for media queries for this component.
-
Reduce the font size of you heading.
Happy Coding! 👻🎃
Marked as helpful