how to place text in the middle 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;
}