Skip to content

Instantly share code, notes, and snippets.

View nchapman's full-sized avatar

Nick Chapman nchapman

View GitHub Profile
# ruby font_sizes_from_base.rb 13
(10..50).each { |i| puts "#{i}px => #{(i/ARGV[0].to_f * 100).round}%" }
<!DOCTYPE html>
<html>
<head>
<title>HTML5 Boilerplate</title>
<meta charset="utf-8" />
<script src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js"></script>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet" href="screen.css" />
<!DOCTYPE html>
<html>
<head>
<title>HTML5</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=650, user-scalable=yes">
<!-- pick your poison:
<script src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
-->
# iWeb at root of domain on MediaTemple (gs)
DirectoryIndex Welcome.html
RewriteEngine on
RewriteCond %{REQUEST_URI} !/MySite/
RewriteRule ^(.*?)$ /MySite/$1 [L]
header.main .hook, .container, footer.main
{
width: 87em;
margin: 0 auto;
}
/* Fluid
header.main .hook, .container, footer.main
{
width: auto;