Created
October 31, 2014 03:13
-
-
Save drkrish/3cd7198df1a76cb9f985 to your computer and use it in GitHub Desktop.
Nice CSS Divider
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
<div class="strike-heading black"> | |
<p>Who We Are</p> | |
</div> |
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
.strike-heading{ | |
text-align: center; position: relative; text-transform: uppercase; | |
} | |
*{ | |
box-sizing: border-box; | |
} | |
div{ | |
display: block; | |
} | |
.strike-heading.black:after { | |
border-bottom: 1px solid #333; | |
} | |
.strike-heading:after { | |
position: absolute; content: ""; left: 0; right:0; top: 50%; bottom: 50%; z-index: -1; | |
} | |
.strike-heading.black p { | |
background: #333; | |
} | |
.strike-heading p { | |
display: table; margin: 0 auto; line-height: 1; padding: 10px 50px; font-size: 13px; color: #fff; | |
border-radius: 5px; font-family: sans-serif; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment