P
@james-rod
Posted
Hello There,
If you want to make the body or the main be align in the center. I have two option
- You can use margin: 70px auto as it will center your body/ main
- You can use flexbox or a grids.
In this case for a flexbox main{ display: flex; justify-content: center; align-items: center; min-height: 100vh; }
Hope this helps
Marked as helpful
0