Skip to content

Instantly share code, notes, and snippets.

@jdcauley
Last active December 20, 2015 18:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdcauley/6175824 to your computer and use it in GitHub Desktop.
Save jdcauley/6175824 to your computer and use it in GitHub Desktop.
Adds Lines lines to either side of a text item: - Title -
@fancy-color: #333;
.fancy{
overflow: hidden;
text-align: center;
span {
display: inline-block;
position: relative;
&:before, &:after {
content: "";
position: absolute;
height: 5px;
margin-top: 17px;
border-bottom: 1px solid @fancy-color;
border-top: 1px solid @fancy-color;
top: 0;
width: 600px;
}
&:before{
right: 100%;
margin-right: 15px;
}
&:after{
left: 100%;
margin-left: 15px;
}
}
}
<h3 class="fancy"><span>Example</span></h3>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment