Skip to content

Instantly share code, notes, and snippets.

@cyakimov
Created December 17, 2013 18:49
Show Gist options
  • Save cyakimov/8010474 to your computer and use it in GitHub Desktop.
Save cyakimov/8010474 to your computer and use it in GitHub Desktop.
Horizontal line with text in the middle.
<style>
.divider {
width:100%;
text-align:center;
border-bottom: 1px solid #000;
line-height:0.1em;
margin:10px 0 20px;
}
.divider > span { background:#fff; padding:0 10px; }
</style>
<h2 class="divider"><span>Look ma! I'm in the middle</span></h2>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment