Created
September 25, 2019 21:48
-
-
Save 0xd61/1f345d45e7a27029f5ba29db6805bbdb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<header> | |
<h1><span>Is there a way to keep the irregular coloured background in such a way that each line of text doesn't obscure the previous line?</span></h1> | |
</header> | |
<style> | |
header { | |
width: 100%; | |
max-width: 36em; | |
margin: 0 auto; | |
padding: 5em 0; | |
text-align: center; | |
} | |
h1 { | |
background: black; | |
color: white; | |
display: inline; | |
font-weight: 200; | |
line-height: 0.8; | |
} | |
h1 > span { | |
position: relative; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment