Skip to content

Instantly share code, notes, and snippets.

@threedaymonk
threedaymonk / grid.js
Created July 5, 2012 16:11
View and test vertical rhythm
(function(){
var isGridActive = false;
var lineHeight = function(){
return parseInt(window.getComputedStyle(document.body).lineHeight, 10);
};
var gridDataURL = function(){
var size = lineHeight();