Skip to content

Instantly share code, notes, and snippets.

@abraham
Created September 30, 2010 06:47
Show Gist options
  • Save abraham/604135 to your computer and use it in GitHub Desktop.
Save abraham/604135 to your computer and use it in GitHub Desktop.
Basic HTML5 template with jQuery and a simple grid
/* Source: http://www.webdesignerwall.com/tutorials/the-simpler-css-grid/ */
.container {
width: 978px;
margin: 0 auto;
}
.grid1, .grid2, .grid3, .grid4, .grid5, .grid6, .grid7, .grid8, .grid9, .grid10, .grid11 {
float: left;
margin-left: 30px;
}
.grid1 {
width: 54px;
}
.grid2 {
width: 138px;
}
.grid3 {
width: 222px;
}
.grid4 {
width: 306px;
}
.grid5 {
width: 390px;
}
.grid6 {
width: 474px;
}
.grid7 {
width: 558px;
}
.grid8 {
width: 642px;
}
.grid9 {
width: 726px;
}
.grid10 {
width: 810px;
}
.grid11 {
width: 894px;
}
.first {
margin-left: 0;
clear: left;
}
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<title></title>
<link rel='stylesheet' href='/style.css' />
<link rel='stylesheet' href='/grid.css' />
<link rel='alternate' title='Atom feed' href='/feed/' />
<link rel='shortcut icon' href='/favicon.ico' />
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'></script>
<script>
$(function () {
});
</script>
</head>
<body>
<header>
<h1>My Weblog</h1>
<p class="tagline">A lot of effort went into making this effortless.</p>
</header>
<section id='content'>
</section>
<nav>
<ul>
<li><a href="#home">home</a></li>
<li><a href="#blog">blog</a></li>
<li><a href="#gallery">gallery</a></li>
<li><a href="#about">about</a></li>
</ul>
</nav>
<footer>
</footer>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment