Skip to content

Instantly share code, notes, and snippets.

@RB-Lab
Created May 16, 2014 15:07
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 RB-Lab/3728f1f55ac489c8cf8e to your computer and use it in GitHub Desktop.
Save RB-Lab/3728f1f55ac489c8cf8e to your computer and use it in GitHub Desktop.
css divider like ---------- ⌘ ----------- from <hr/> tag
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