Skip to content

Instantly share code, notes, and snippets.

@gunnarbittersmann
Created November 5, 2013 19:03
Show Gist options
  • Select an option

  • Save gunnarbittersmann/7324264 to your computer and use it in GitHub Desktop.

Select an option

Save gunnarbittersmann/7324264 to your computer and use it in GitHub Desktop.
heading decorated
/**
* heading decorated
*/
h1
{
font-size: 1.25em; /* use relative unit */
text-align: center;
background:
linear-gradient(
to right,
transparent 50%,
white 50%
) repeat 100% 100%/4px 100%,
linear-gradient(
to bottom,
transparent 50%,
black 50%,
black calc(50% + 1px),
transparent calc(50% + 1px)
);
}
h1::first-line
{
background: white;
}
h1::before,
h1::after
{
content: "";
display: inline-block;
width: 1em;
}
<h1>Heading</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