Measure Page Elements The Easy Way

Perhaps you’re the guy who still has to hit the “Print Screen” button, paste into Photoshop, and use the marquee tool to measure the pixel width of an element in a website you’re working on.

If so, here are a couple alternatives.

01. XRAY Bookmarklet

My first choice, is to make use of XRAY. It is just a javascript that allows you to click any block element on a page, and it gives you a list of details for that element.

Try it. Just click the XRAY button, then click anywhere on this page. It’ll highlight the block, and give you details like the element id, width, height, position, margin, padding and more.

XRAY

For best use, right click the XRAY button, Select “Bookmark this link” and save it to your link toolbar. Or just drag the button to your toolbar. That way it’ll always be a handy button up top, for any page you’re viewing.

02. MeasureIt Addon

The MeasureIt Firefox Addon is handy as it allows you to click and drag to manually measure a block element.

03. Web Developer Toolbar

If you aren’t using this Firefox Addon, then you really need to be. On the WebDev toolbar, click Information » Display Element Information.

Much like XRAY, this allows you to click an element and get a list of info for it. Keyboard shortcut is Control + Shift + F.

Anyone else have any suggestions for measuring page elements?

1 Comments
  1. Steve June 25, 20084:47 pm

    I knew about XRay. That’s a pretty nifty bookmarklet. I’ll check the others out as well.

Submit Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

To include your code, use pastebin, and paste the URL in the comment body. Failure to do so may prevent your comment from appearing. Thank you.