@correlucas
Posted
๐พHello Jen, congratulations for your solution!
I've checked your code and you need to remove some margins and padding-top to give it the proper alignment, add some flex properties in the body, see the code below:
body {
font-family: 'Outfit', sans-serif;
background-color: hsl(212, 45%, 89%);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.qr_component {
background-color: hsl(0, 0%, 100%);
width: 375px;
/* height: auto; */
/* margin: 0 auto; */
/* margin-top: 100px; */
border-radius: 20px;
padding: 15px;
}
If you want to reduce you code and have more control over it, you can use a single div to wrap everything and delete all the classes, note that for this challenge there are only one element for each kind, img, h1 and p. So you can select all of them with its selector without need for classes img, p, h1, div
.
Hope it helps and happy codign!
Marked as helpful
@jenmurph4610
Posted
@correlucas Thanks for the tips! Adding the flex properties simplified a lot, I added them to <main> as well and cleaned up my CSS. I also removed the two classes and just used selectors for those instead. They definitely were unnecessary.
Can you elaborate more on what you mean about using a single div? I am not sure I follow you on that part.