Created
September 2, 2026 17:52
-
-
Save Snarp/814e20d066365ede4965a33b911df127 to your computer and use it in GitHub Desktop.
HR Styling
This file contains hidden or 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
| hr.transparent { | |
| width: 0; | |
| height: 0; | |
| border: none; | |
| opacity: 0; | |
| border-color: #fff; | |
| color: #fff; | |
| margin: 1em auto; | |
| } | |
| /* Displays as a centered `⋆ ⋆ ⋆` */ | |
| hr.stars { | |
| overflow: visible; /* For IE */ | |
| padding: 0; | |
| border: none; | |
| color: #333; | |
| text-align: center; | |
| margin: 1em auto; | |
| } | |
| hr.stars:after { | |
| content: "⋆ ⋆ ⋆"; | |
| display: inline-block; | |
| position: relative; | |
| font-size: 1.8em; | |
| } | |
| /* Glyph, by Harry Roberts | |
| Double-line with `§` char in center | |
| https://css-tricks.com/examples/hrs/ */ | |
| hr.style-eight { | |
| overflow: visible; /* For IE */ | |
| padding: 0; | |
| border: none; | |
| border-top: medium double #333; | |
| color: #333; | |
| text-align: center; | |
| } | |
| hr.style-eight:after { | |
| content: "§"; | |
| display: inline-block; | |
| position: relative; | |
| top: -0.7em; | |
| font-size: 1.5em; | |
| padding: 0 0.25em; | |
| background: white; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment