@Hassiai
Posted
There is no need for <div class="qr-background"> in the html and its styling in the css.
Replace<div class="container">with the main tag and <div class="attribution"> with the footer tag to make the page accessible. click here for more on web-accessibility and semantic html
To center .container on the page using flexbox, add min-height:100vh; display: flex; align-items: center: justify-content: center; to the body
body{
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
Give h1 and p the same font-size of 15px which is 0.9375rem, text-align: center, the same margin-left and margin-right values . Give p a margin bottom value.
For a responsive content,
- Replace the width in .container with max-width.
- Give the img a max-width of 100% and a border-radius value, the rest are not needed.
Use relative units like rem or em as unit for the padding, margin, width values and preferably rem for the font-size values, instead of using px which is an absolute unit. For more on CSS units Click here
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful
@testpilotuk
Posted
@Hassiai thank you for your comments, they were helpful. I do know a little about accessibility but did not apply it here. I will study more and follow this principle in future projects.