Member Sign In
Not a member?

A Wired.com user account lets you create, edit and comment on Webmonkey articles. You will also be able to contribute to the Wired How-To Wiki and comment on news stories at Wired.com.


It's fast and free.

Webmonkey is a property of Wired Digital.
processing...
Join Webmonkey

Please send me occasional e-mail updates about new features and special offers from Wired/Webmonkey.
Yes No

Please send occasional e-mail offers from Wired/Webmonkey affiliated web sites and publications, and carefully selected companies.
Yes No

I understand and agree that registration on or use of this site constitutes agreement to Webmonkey's User Agreement and Privacy Policy.
Webmonkey is a property of Wired Digital.
processing...

Retrieve Sign In

Please enter your e-mail address or username below. Your username and password will be sent to the e-mail address you provided us.

or
Webmonkey is a property of Wired Digital.
processing...

Welcome to Webmonkey

A private profile page has been created for you.
As a member of Webmonkey, you can now:
  • edit articles
  • add to the code library
  • design and write a tutorial
  • comment on any Webmonkey article
Close
Webmonkey is a property of Wired Digital.

Sign In Information Sent

An e-mail has been sent to the e-mail address registered in this account.
If you cannot find it in your in-box, please check your bulk or junk folders.
Sign In
Webmonkey is a property of Wired Digital.

Think Inside the Box Model With XRAY

XRAY is a su-weet little bookmarklet for quick and dirty CSS info. It’s similar to some of the simple features of our beloved Firebug, only much faster, and works in just about every modern browser.

XRAY in action

Once you install the XRAY bookmarklet, give it a click and you’ll see a semi-transparent overlay. At that point, click anywhere on the page and you’ll get info on the box model of that element. XRAY puts a bright border around the box and highlights the width, height, and coordinates. In the overlay, you get lots more info: borders, margins, padding, id, classes, and its location within the box hierarchy.

Perhaps equally as exciting as what XRAY does is what it represents. As a bookmarklet, it’s worthy of emulation. XRAY’s developers credit a microformats bookmarklet with the inspiration.

All the XRAY bookmarklet does is include its JavaScript file, which does all the tough stuff. This also means that it’s auto-updating. Bugs don’t get stuck on users computers, waiting for them to upgrade. I’m looking forward to seeing more bookmarklets like this.

See also:

Post Comment Comments Permalink Print
Reddit Digg

 
Subscribe now

Special Offer For Webmonkey Users

WIRED magazine:
The first word on how technology is changing our world.

Subscribe for just $10 a year