need to measure?

RulersGuides.js – “a Javascript library which enables Photoshop-like rulers and guides interface on a web page” (available as bookmarklet)