how to make text at middle in css code example
Example 1: middle text css
text-align: center;
Example 2: how to set text to middle in div
.center {
margin: auto;
width: 50%;
border: 3px solid green;
padding: 10px;
}
text-align: center;
.center {
margin: auto;
width: 50%;
border: 3px solid green;
padding: 10px;
}