Skip to content

Instantly share code, notes, and snippets.

@steveosoule
Created August 29, 2014 18:35
Show Gist options
  • Save steveosoule/5dab6716bc0986644e87 to your computer and use it in GitHub Desktop.
Save steveosoule/5dab6716bc0986644e87 to your computer and use it in GitHub Desktop.
Heading with Background Line
/* ---- Heading with background line ---- */
/*
EXAMPLE
----------------------
<h5 class="heading-hr cyan uppercase">
<span>Customers Also Purchased</span>
</h5>
*/
.heading-hr{
display: block;
border-top: solid 1px;
width: 100%;
height: 1rem;
margin-top: .5rem;
z-index: 1;
}
.heading-hr span {
background: #fff;
padding: 0 .5rem;
display: inline-block;
z-index: 5;
position: relative;
top: -.75rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment