When you need to know the distance between two elements, try Page Ruler. There are no frills in this extension, which is for the better. Simply pick a color and drag a box between what you want to measure. Note that some users have reported privacy issues with Page Ruler, so you can try the older version here, or an alternative like Ruler.