Design comparison
Solution retrospective
Primeiro Desafio Front-End Mentor / QRCode
Community feedback
- @eliofloPosted almost 2 years ago
Hi there! Your solution looks good.
I noticed that you used margin to center the .conteudo class div, but if the viewport height is too short, the .conteudo div may not look centered anymore. The Both Horizontally & Vertically css-tricks section on css-tricks has some advice and alternatives for centering elements.
In your case, you could try using the following code to center the .conteudo div:
.container { display: grid; min-height: 100vh; place-items: center; }
This method will ensure that the .conteudo div is centered for any viewport height size.
You're doing a great job with your coding. I hope this comment helps you improve your solution!
Elio Flores
0 - @Finney06Posted almost 2 years ago
Hello there ๐. Good job on completing the challenge !
Here are some suggestions regarding your code that may be of interest to you.
HTML ๐ท๏ธ:
To clear the Accessibility report:
-
Wrap the page's whole main content in the
<main>
tag. -
Use HTML5 semantic elements such as
<header>
,<nav>
,<main>
,<aside>
, and<footer>
to define these sections.
Here is a web accessibility evaluation tool๐ to check your webpage for any remaining errors or warnings related to landmarks.
I hope you find it helpful!๐ Above all, the solution you submitted is ๐. ๐Happy coding!
0 -
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