Skip to content

Instantly share code, notes, and snippets.

@justinthrelkeld
Last active December 13, 2015 23:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinthrelkeld/4991612 to your computer and use it in GitHub Desktop.
Save justinthrelkeld/4991612 to your computer and use it in GitHub Desktop.
basic HTML5 template
@charset "utf-8";
@import url("fonts.css");
html{height:100%;}
body{
height:100%;
font-size: 100%;
margin: 0 auto;
width: 65em;
}
header{}
header h1{}
nav{}
nav ul{
margin:0;
}
nav ul li{
margin:0;
display: block;
float:left;
}
nav ul li a{
}
main{}
footer{}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Page Title</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<header id="top">
<h1>Page Title</h1>
</header>
<nav>
<ul>
<li><a href="#">Link 1</a></li>
</ul>
</nav>
<main>
<h2>Content</h2>
</main>
<footer>
</footer>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment