From Frode Aarebrot:
Measure Schmeasure Portable is a simple screen ruler for measuring the width or height between pixels in any application. Just load it up and measure away. It can be set to always appear on top of other windows and it can measure both horizontally and vertically. You can also fully customize the colors to suit your preference.