@Hassiai
Posted
Ther is no need for <div class="bg_blue"> <div class="bg_white"> in the html and their styling in the css.
Give the body a background-color of hsl(212, 45%, 89%);.
There is no need to style .qr-code
For a responsive content,
- Give the main a fixed max-width value, a padding value for all the sides
max-width: 320px which is 20rem/em padding:16px which is 1rem/em
, a background-color of white and a border-radius value, the rest are not needed - Give the img a max-width of 100% and a border-radius value, the rest are not needed.
To center the main on the page using flexbox or grid,
- 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;
}
- USING GRID: add min-height:100vh; display: grid place-items: center to the body
body{
min-height: 100vh;
display: grid;
place-items: center;
}
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 and here
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful