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