Created
January 7, 2011 17:39
-
-
Save funkatron/769806 to your computer and use it in GitHub Desktop.
shows some super fancy text kerning and positioning and shit. Uses jquery.lettering.js
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Page Title</title> | |
<link href='http://fonts.googleapis.com/css?family=Cardo:regular"' rel='stylesheet' type='text/css'> | |
<style type="text/css" media="screen"> | |
BODY { | |
background-color:#999; | |
font-family:Cardo; | |
} | |
#container { | |
width: 600px; | |
padding: 20px; | |
background-color:#FFF; | |
margin-left:auto; | |
margin-right:auto; | |
margin-top:2em; | |
} | |
#header { | |
width: 600px; | |
line-height:490px; | |
height:600px; | |
background-color:#000; | |
color:#FFF; | |
text-align:center; | |
position:relative; | |
padding:0; | |
margin-left:auto; | |
margin-right:auto; | |
} | |
#title { | |
position:absolute; | |
width: 600px; | |
text-align:center; | |
font-size:45pt; | |
} | |
#title .char1 {padding-right:.1em;} | |
#title .char2 {padding-right:.1em;} | |
#title .char3 {padding-right:.1em;} | |
#title .char4 {padding-right:.1em;} | |
#title .char5 {padding-right:.1em;} | |
#title .char6 {padding-right:.1em;} | |
#title .char7 {padding-right:.1em;} | |
#title .char8 {padding-right:.1em;} | |
#title .char9 {padding-right:.05em;} | |
#nav { | |
position:absolute; | |
top:4em; | |
font-size:16pt; | |
letter-spacing: 0.135em; | |
width:600px; | |
text-align:center; | |
} | |
#nav-items { | |
width:22em; | |
margin-left:auto; | |
margin-right:auto; | |
} | |
#nav-items a { | |
padding-right:1.2em; | |
color:#FFFFFF; | |
text-decoration:none; | |
} | |
#nav-items .word4 { | |
padding-right:0; | |
} | |
</style> | |
<script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.4.min.js" type="text/javascript" charset="utf-8"></script> | |
<script src="jquery.lettering.js"></script> | |
<script> | |
$(document).ready(function() { | |
$("#title").lettering(); | |
}); | |
</script> | |
</head> | |
<body> | |
<div id="container"> | |
<div id="header"> | |
<h1 id="title">FUNKATRON</h1> | |
<div id="nav"> | |
<div id="nav-items"> | |
<a href="#!posts" class="word1">POSTS</a> <a href="#!items" class="word2">ITEMS</a> <a href="#!about" class="word3">ABOUT</a> <a href="#!contact" class="word4">CONTACT</a> | |
</div> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment