Skip to content

Instantly share code, notes, and snippets.

@oli
Created October 10, 2013 06:59
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 oli/6914176 to your computer and use it in GitHub Desktop.
Save oli/6914176 to your computer and use it in GitHub Desktop.
A minimal horizontal rule style for printing, despite browsers being incapable of printing a hairline
/* Based on Glyph, by Harry Roberts */
/* http://css-tricks.com/simple-styles-for-horizontal-rules/ */
hr {
height: 0;
margin: 3em 0;
padding: 0;
border: none;
border-top: 1px solid #999;
text-align: center;
}
hr:after {
content: "§";
display: inline-block;
position: relative;
top: -0.82em;
padding: 0 0.25em;
font-size: 1.4em;
color: #bbb;
background: #fff;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment