how to make body center align in html code example
Example 1: html center body
body {
display:flex; flex-direction:column; justify-content:center;
min-height:100vh;
}
Example 2: html center body
body {
max-width: max-content;
margin: auto;
}