How To >> Browse Articles >> Web Development
Firebug is Your Best Friend
Eric Dahl
February 14, 2008
Ever wonder how that site you like did its roll-overs, or which route they took to implement rounded corners in CSS? Or maybe you're about to take in a feed from a client's site, and you'd like to see how well they structure their pages. Well, you could pore through the source of the page, download the linked CSS files and inspect those, and trace what you can of the Javascript you can see. Or you could install Firebug.
Firebug has rapidly become my favorite Firefox extension ever. And by rapidly, I mean the first time I tried it out, it shot to the top of my rankings! Once you've got Firebug installed, you'll see a little gray slashed circle in the bottom right corner of your browser window. Right click it to turn Firebug on, then click Inspect and mouse over the page you're browsing to highlight the source behind the page and the CSS that styles it.
You can collapse the HTML tags in Firebug's main window to let you see the structure of a document and focus just on the area you're inspecting, or expand them to show you everything. The extension's CSS inspector carefully picks out every snippet of the style sheet that controls the element you're looking at, so you won't miss any inheritance. There's even a Layout view that helps you decode all the complex CSS spacing elements effecting the segment you're inspecting.
I could go on and on... The point is, if you know XHTML and CSS, Firebug will rapidly become an indispensable tool. And if you're learning CSS, you don't need much more than a code-savvy mind, a decent book, and Firebug to figure everything out.
One key point, though: If you're a frequent user of gmail, Netvibes, or other highly dynamic sites, you'll want to disable Firebug from inspecting those URLs. It works just fine, but sites like that tend to slow down if Firebug's looking at them. Load up those sites, right-click the Firebug icon at the bottom right of your browser, and choose "Disable Firebug for [sitename]".

Solly
about 1 month ago
4 comments
this is a nice template, is this a joomla or a wordpress?
jamesspeer
about 1 month ago
10 comments
Yes, I am in love with firebug also. There are alot of other great firefox plugins as well. Live HTTP headers, user agent switcher, just do a little research and you will see why Firefox is the best web browser online.
korireed
about 1 month ago
2 comments
I stumbled across FireBug quite some time ago...
But just as you did, it shot to #1 as soon as I started to use it.
It's an amazing tool - I'd recommend it to anyone!
ch3mi0n
3 months ago
14 comments
Maybe should have rated the article a 4, due to the fact that it seems some of the info is out of date, but it gets the point across nicely that Firebug is an indispensable tool for any web developer/designer from beginner to expert. I also don't find that Gmail/etc have any slow-down issues with Firebug in Firefox 3.
EB3
6 months ago
60 comments
Right on sliderule, I use the both together. Great tools!
sliderule
8 months ago
14 comments
The Firefox Firebug and Web Developer toolbar combination is indispensable for front end web development these days. If only the same tools were available for IE and Safari and all the other browsers out there, the web (as a whole) would begin to look and function so much better.
MikeD
9 months ago
854 comments
Great article Eric. I use Firebug religiously.
slideslice
9 months ago
6 comments
This looks very helpful, thanks.