Design comparison
Community feedback
- @HassiaiPosted almost 2 years ago
Replace <div class="p"> with the main tag and <h2> with <h1> to fix the accessibility issues. add lang=" en" to <html> to fic the error with your code. for more on semantic html visit https://web.dev/learn/html/semantic-html/
There is no need for <div id="b"><img src="background-desktop.svg" alt=""> in the html. Use background-desktop.svg as background-image of the body in the stylesheet. give it a background repeat of no-repeat and background-size of contain. Give the body a background-color as well.
Use the colors that were given in the stylegide.md give the background of text-content a color of white
To center a content on a page, add min-height:100vh; display: flex; align-items: center: justify-content: center; min-height:100vh; display: grid place-items: center to the body.
Hope am helpful Happy
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