.did-title { font-family: sans-serif; position: relative; width: 100%; height: 100px; text-align: center; vertical-align: middle; color:#0f477e; overflow: visible; font-size: 2em; } .did-title .content{ z-index: 100; position:absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-shadow: 0px 0px 10px #f0fff0, 0px 0px 20px #f0fff0; } .did-title canvas{ position:absolute; top: 0px; left: 0px; width: 100%; height: 100%; }