Design comparison
SolutionDesign
Community feedback
- @AGutierrezRPosted 11 months ago
Hello there 👋. Good job on completing the challenge!
I have some suggestions about your code that might interest you.
General Structure and HTML:
- Wrap the primary content within the
<main>
tag instead of using it as a standalone component like a<div>
. - All the content should be contained within landmarks. Every page minimally needs a
<main>
element. - Consider using
<h2>
instead of<p>
for elements that are titles, like the title of the card. - Consider merge the "Scan the QR code to visit Frontend", "Mentor and take your coding skills to" and "the next level" into a paragraph and play with the
width
usingch
unit in order to match the design.
CSS and Styling:
-
To center the card use the following styles
body { display: flex; justify-content: center; align-items: center; min-height: 100vh; }
and remove the
position: absolute
,margin-left: 40%
andmargin-top: 10%
from the.container-fluid
-
Implement CSS custom properties to define and utilize project colors more easily.
I hope you find this helpful 😁. Most importantly, your submitted solution is fantastic!
Happy coding!
Marked as helpful0 - Wrap the primary content within the
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