Created
May 16, 2014 15:07
-
-
Save RB-Lab/3728f1f55ac489c8cf8e to your computer and use it in GitHub Desktop.
css divider like ---------- ⌘ ----------- from <hr/> tag
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
hr{ | |
margin: 1em 7em; | |
background: #333; | |
height: 1px; | |
border: none; | |
position: relative; | |
} | |
hr:before{ | |
content: "\2318"; /* ⌘ */ | |
position: absolute; | |
left: 50%; | |
top: -0.6em; | |
background: white; /* background of your page */ | |
padding: 0 1em; | |
margin-left: -1em; | |
color: #333; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment