QR code component page using HTML and CSS box model
Design comparison
Community feedback
- @HassiaiPosted almost 2 years ago
Replace<section class="background"> with the main tag and <p class="heading"> with <h1> to fix the accessibility issues. To center .background on the page, add min-height:100vh; display: flex; align-items: center: justify-content: center; or min-height:100vh; display: grid place-items: center to the body.
Give .background a background of white a padding value for all the sides, give the img a max-width of 100% instead of a width and height value. For responsive content which wont require a media query for this design, replace the width of .background with max-width and change the height's value to auto.
Give p and h1 the same padding left , padding-right and margin-top values.
Use rem or em as unit for the padding, margin, width and preferably rem for the font-size for more on CSS units watch this https://youtu.be/N5wpD9Ov_To
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful1 - @NikolaD93Posted almost 2 years ago
Hello there! 👋
Congrats for completing the challenge! 🙌
Yes, you should definitely use Git and GitHub, here are some useful links
Hope this was helpful for you!
Happy holidays! 🎉✌
1
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