how to make fonts of div to center code example
Example 1: center a div in css
.container {
display: flex;
justify-content: center;
align-items: center;
}
Example 2: center h1 css
h1 {
width:500px;
margin: 0 auto;
background: gray;
text-align: center;
}