menyusut div agar sesuai dengan konten
.centerBox {
display:inline-block;
text-align:center;
}
<div class="centerBox">
Some text
</div>
Studious Gamer
.centerBox {
display:inline-block;
text-align:center;
}
<div class="centerBox">
Some text
</div>