@ecemgo
Posted
Some recommendations regarding your code that could be of interest to you.
- In order to center the card, you can add flexbox and
min-height: 100vh
to thebody
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100vh;
}
- After adding them, you don't need to use
margin
in the.container
to center the card so you can remove it
.container {
/* margin: 100px 500px; */
}
- Finally, you haven't used
<main>
tag in html file, so you can remove it from CSS file:
/*
main {
background: hsl(212, 45%, 89%);
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
*/
Hope I am helpful. :)