Created
October 10, 2013 06:59
A minimal horizontal rule style for printing, despite browsers being incapable of printing a hairline
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
/* 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