body { background-color: #222; margin: 0; } #drawing_canvas { background-color: #aaa; position: absolute; margin: auto; width: 1024px; height: 512px; top: 0; bottom: 0; left: 0; right: 0; } #text-measure { font-family: 'Arial', cursive; font-size: 120px; font-weight: bolder; color: #fff; margin: 0; padding: 0; } .hidden { position: absolute; visibility: hidden; }