how to center body 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;
}
body {
display:flex; flex-direction:column; justify-content:center;
min-height:100vh;
}
body {
max-width: max-content;
margin: auto;
}