<div style="position: absolute; width: calc(100% - 120px); height: calc(100% - 120px); left: 60px; top: 60px; display: table;"> <h1 style="margin: 0 auto; text-align: center; display: table-cell; vertical-align: middle;">Text</h1></div>