MeasureIt is a nice plugin for firefox
http://www.kevinfreitas.net/extensions/measureit/

that does the same thing.