How can I center align text in a div with the following structure:
.centerText {
position: absolute;
left: 100px;
top: 20px;
text-align: center;
font-size: 25px;
}
<div class="centerText">Hello World</div>
Doing so still aligns the text to the left side; 100px from the left.