Skip to content

Instantly share code, notes, and snippets.

@0xd61
Created September 25, 2019 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0xd61/1f345d45e7a27029f5ba29db6805bbdb to your computer and use it in GitHub Desktop.
Save 0xd61/1f345d45e7a27029f5ba29db6805bbdb to your computer and use it in GitHub Desktop.
<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