Skip to content

Instantly share code, notes, and snippets.

@danieldrasdo
Last active March 2, 2016 02:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danieldrasdo/1202210b3c39ed9043e4 to your computer and use it in GitHub Desktop.
Save danieldrasdo/1202210b3c39ed9043e4 to your computer and use it in GitHub Desktop.
<style>
p {
text-align: left;
margin-bottom: 30px;
line-height: 24px;
}
div {
position: relative;
text-align: center;
margin-top: 20px;
}
.dualLines {
position: relative;
text-align: center;
margin-top: 0;
}
.dualLines:before {
content: "";
display: block;
border-top: 5px solid red;
border-bottom: solid 1px black;
width: 100%;
height: 1px;
position: absolute;
top: 50%;
z-index: 1;
}
.dualLines span {
background: #fff;
padding: 0 4px;
position: relative;
z-index: 5;
}
</style>
<div class="dualLines"><span>Heading Number One</span></div>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
<div class="dualLines"><span><img src="icon.png" alt="Icon" /></span></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment