Created
August 29, 2014 18:35
-
-
Save steveosoule/5dab6716bc0986644e87 to your computer and use it in GitHub Desktop.
Heading with Background Line
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
/* ---- 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