Created
January 20, 2011 18:35
-
-
Save TdroL/788347 to your computer and use it in GitHub Desktop.
HTML5/CSS3 Shifted logo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1 data-content="Graphic portfolio">Graphic portfolio</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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