How To >> Browse Articles >> Web Development

+10

Firebug is Your Best Friend

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]".


+10
  • Study-fail_max50

    Solly

    about 1 month ago

    4 comments

    this is a nice template, is this a joomla or a wordpress?

  • Avatar2607_1_max50

    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.

  • 100_2138_max50

    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!

  • Picture_204_max50

    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.

  • Pig_max50

    EB3

    6 months ago

    60 comments

    Right on sliderule, I use the both together. Great tools!

  • Gilsonr_max50

    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.

  • Meinasuit_max50

    MikeD

    9 months ago

    854 comments

    Great article Eric. I use Firebug religiously.

  • Portrait_max50

    slideslice

    9 months ago

    6 comments

    This looks very helpful, thanks.

What's the Scoop?

Post a link to something interesting from another site, or submit your own original writing for the InsideTech community to read.

Report News Here

Recent Activity

Ope_max30
kate received a gift from Mohd, 3 minutes ago.
Photo_user_blank_big
Tech_Insider joined the group "Tech Support/ System Admin", 4 minutes ago.
Dsc00384_max30
Phreadd commented on: "DeAnna Rice", 5 minutes ago.
Dsc00384_max30
Phreadd commented on: "Kris Rzepkowski", 5 minutes ago.
Dsc00384_max30
Phreadd commented on: "kate", 7 minutes ago.