Skip to content

Instantly share code, notes, and snippets.

@diggs00
Created October 16, 2012 16:06
Show Gist options
  • Save diggs00/3900260 to your computer and use it in GitHub Desktop.
Save diggs00/3900260 to your computer and use it in GitHub Desktop.
Title with Horizontal Rules
/**
* Title with Horizontal Rules
*/
body {
background: #fff;
}
h1 {
text-align: center;
}
h1:before,
h1:after {
content: "";
position: relative;
display: inline-block;
width: 20%;
height: 1px;
vertical-align: middle;
background: #aaaaaa;
}
h1:before {
left: -20px;
}
h1:after {
left: 20px;
}
<!-- content to be placed inside <body>…</body> -->
<body>
<h1>TITLE</h1>
</body>
{"view":"split-vertical","fontsize":"90","seethrough":"","prefixfree":"1","page":"css"}
@diggs00
Copy link
Author

diggs00 commented Oct 16, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment