Skip to content

Instantly share code, notes, and snippets.

@AdamMarsden
Created April 14, 2015 09:13
Show Gist options
  • Save AdamMarsden/f249dee01ed1c00b40df to your computer and use it in GitHub Desktop.
Save AdamMarsden/f249dee01ed1c00b40df to your computer and use it in GitHub Desktop.
Left & right border lines next to text
<div class="left_right_lines">
<span>
<h6>Text with lines</h6>
</span>
</div>
.left_right_lines {
width: 500px;
margin: 0 auto;
overflow: hidden;
span {
display: inline-block;
position: relative;
&:before, &:after {
content: "";
position: absolute;
height: 5px;
border-top: 1px solid $white;
top: 10px;
width: 700px;
}
&:before {
right: 100%;
margin-right: 15px;
}
&:after {
left: 100%;
margin-left: 15px;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment