Skip to content

Instantly share code, notes, and snippets.

@jensgro
Forked from gunnarbittersmann/dabblet.css
Created December 18, 2015 20:31
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 jensgro/421499afc30ca0066361 to your computer and use it in GitHub Desktop.
Save jensgro/421499afc30ca0066361 to your computer and use it in GitHub Desktop.
heading decorated
/**
* heading decorated
*/
html
{
height: 100%;
background: linear-gradient(
to right bottom,
yellow,
red
);
}
h1
{
font-size: 1.25em;
text-align: center;
display: table;
border-collapse: collapse;
}
h1::before,
h1::after
{
content: "";
display: table-cell;
width: 50%;
background-image: linear-gradient(
to right,
transparent 50%,
black 50%
);
background-position: 0px 50%;
background-size: 4px 1px;
background-repeat: repeat-x;
}
h1::before
{
border-right: solid 2em transparent;
}
h1::after
{
border-left: solid 2em transparent;
}
<h1>Heading, das auch noch ne runde größer wird</h1>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment