add text in middle of div code example Example: how to make a division center css position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);