Unintentionally Blank

Phil Nash on the Internet, Web Standards and Accessibility

Web Developer Tools XRAY

Nov 16, 2007

by Phil Nash

I'm kicking off my web developer tools series with, what I imagine to be, a lesser known tool from WestCiv. It may sound more like a procedure in a hospital, but XRAY is a simple but invaluable tool in any developer's belt.

Quick, Simple, Informative

XRAY allows you to take a quick look at some vital properties of any element on your page. Fire up XRAY, click on an element and you will see its name, id and any classes, its position in both the page and the page hierarchy, height, width and whether it is floated, its border, padding and margin. A whole lot of information presented very neatly.

Using XRAY to find information about page elements.

Even better is the visual way in which XRAY displays your information. Not just presenting it in the heads up display, but highlighting the element on the page, colouring the padding and margins and displaying the position, height and width next to the element too. And that's not all, the latest version of XRAY allows you to navigate between ancestors and descendants of the element with your up and down keys and between siblings of the element using left and right.

One last thing about XRAY, it is usable in most browsers as it is a bookmarklet. There is no downloading, just drag it from its home to your bookmarks and you can click it at any time to bring up the tool on any site. Though it can be a pain to use in Internet Explorer, this can be very useful to tell if there are any differences in basic proportions between IE and your favourite standards based browser.

It's quick, simple to use, available for most browsers and gives you information about your web pages with just a couple of clicks. I tend to use this as a quicker alternative to more complex Firefox extensions and highly recommend it for use when building anything from the very simple to the very complex web layouts. Try it out here, XRAY this page! If you like it, get the latest version from WestCiv and XRAY any page!

Unintentionally Blank is Phil Nash's thoughts on web development from 2006-2008. Any code or opinions may be out of date.