Skip to content

Instantly share code, notes, and snippets.

@Samnan
Forked from TdroL/logo.html
Created June 25, 2011 06:26
Show Gist options
  • Save Samnan/1046234 to your computer and use it in GitHub Desktop.
Save Samnan/1046234 to your computer and use it in GitHub Desktop.
HTML5/CSS3 Shifted logo
<h1 data-content="Graphic portfolio">Graphic portfolio</h1>
h1 {
font: 80px/1 "Trebuchet MS", Helvetica, Jamrul, sans-serif;
position: relative;
white-space: nowrap;
}
h1:after {
position: absolute;
display: block;
top: 0.48em;
left: -0.035em;
padding-right: 0.035em;
/* line-height below 0.045 is bugged on Opera */
/* for smaller font-sizes */
line-height: 0.045;
height: 0.3em;
overflow: hidden;
background: #fff;
content: attr(data-content);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment