@GabrielBC2021
Posted
Hello, just a quick tip
If you want to center your main or div, so this one is right in the center of your website, you can add the next properties to your body
`body {
display: flex;
align-items: center;
min-height: 100vh;
} `
and you can eliminate the next properties from your media query
`.section {
justify-content: center;
align-items: center;
position: absolute;
top: 35%;
left: 50%;
transform: translate(-50%, -50%);
} `
With this now you don't have a lot of CSS code to center your div and is easier.
I hope it helps you :D
Marked as helpful
@Facu3071
Posted
@GabrielBC2021 Thanks a lot for your feedback, I really appreciate it.