header { width: 100%; height: 100vh; position: relative; overflow: hidden; background-color: var(--white); } h1 { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; font-size: calc(1rem + 7vw); font-family: var(--font); }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter