Shalom2935• 420
@Shalom2935
Posted
hello well done completing this challenge. I think those tips might help you improve your code:
- this is the magic formula whenever you want to center a div whether it is horizontally or vertically:
body {
display: flex;
justify-content: center;
align-items: center;
}
the margin you gave will prevent the site from being responsive.
- giving your main element a max-width is great but it is for no use if you don't add a width property.
main{
width:80%;
max-width:416px;
}
Hope my comment will be useful, happy coding.
0