Check Edit HTML Code with Firebug

Are you an HTML moron like me? Read on!

I don’t have $$$ or TIME to sign up for 3 semesters of courses in HTML, CSS, C +++ (do they still teach that?), PHP, Pearl, Ruby On Rails, and all other shit most of you ain’t ever heard of!

I’m also  NOT a software developer, computer programmer, nor an I.T. geek or anything of the sort. I most certainly DO NOT HAVE TIME TO CODE FROM SCRATCH! I am, an artist. One who spends countless hours on just one drawing. I’d much rather put my focus on that than spend countless hours sitting on my fat ass figuring this crap out.

No smarts/no time to learn/ no time to create or install source code by hand/ no $$$ to hire a professional to edit my webpages. What is a broke-ass moron to do?

Answer: Firebug.

What is Firebug for $200.00? (no really, gimme the money- cuz I’m all gangsta!) (wait, no I’m not)

Firebug is anothe nifty downloadable Firefox extension.

So yes, you can only use Firebug within the Firefox web browser. And I will be using the full version for Firefox as I tell you all about it.

However, you can download Firebug Lite for Internet Explorer, Safari, Opera, or any other web browser.

How Complicated Is It To Use Firebug?

Can you modify your MySpace page? Can you cut & paste embedded codes for things like YouTube videos? Can you change your blog’s template? Do you know where CSS code and HTML starts and ends? If you said yes to any of them, then you will have very little difficulty using Firebug.

Where to get Firebug

Three trustworthy places:

  1. Firebug website
  2. Cnet downloads page and type in Firebug in the search bar; select Mac or Windows to the right of it
  3. Mozilla Firefox Add-Ons page and type Firebug in the search bar

I’m sure you can find it elsewhere but best to go to the source and not some shady spammy website whose servers are outside the country. If you don’t wanna listen to my sage advice, oh well, you’re on your own!

Install Firebug

So! Download it> Save To Computer when it asks you> run an anti-virus check on it’s folder before opening (for good measure) >  install it. Go ahead, I will patiently wait. On the ceramic throne, so TAKE YOUR TIME!

Welcome back! Ok, so now it’s on your Firefox. Good. It should look something like this:

See the Firebug Icon?
See the Firebug Icon?

The Firebug Icon looks like a little cucaracha and it’s placed on the Status Bar (along bottom of browser). In case you don’t have the Status Bar showing, go to the top of your Firefox browser, go into View and select Status Bar. Make sure it’s checked on.

You can also switch it on/ off by clicking on the Firebug icon:

This window shows up when you scroll over Firebug icon
This window shows up when you scroll over Firebug icon

Firebug Menu Options

And guess what? If you right-click over the icon and it will bring up a menu of the following options. (for Mac users: hold down Ctrl button and click) But please take your time and read it through first before jumping the gun…

  • Open Firebug in New Window
  • Clear Console
  • Enable All Panels
  • Disable All Panels
  • Off for All Web Pages
  • On for All Web Pages

This is what that menu looks like:

Things I should mention first before going ahead

Firebug has ‘options on top of options’ and endless features. So I’m gonna tell you what you need and where to look so you don’t get lost in the mix.

Now pay attention, son!

Firebug opens up into two panels that automatically docks itself onto the bottom of your browser’s screen- in this case it’s Firefox. (it’s what I’m using) Some people may not like this option because it splits your screen in two and that could be visually annoying.

You can actually pull off Firebug and let it float anywhere on your desktop by clicking on the red button on the top far right. Here is an example:

How to undock Firebug from Firefox
How to undock Firebug from Firefox

And you click on that red button I circled and voilá! Firebug is floating as it’s own window on your screen. To reset it, click on the Firebug icon twice from the Status Bar.

To Enable Firebug

Now the Firebug icon will be installed but may show up in black & white. To check, go into the browser’s Tools at the top and Firebug should be listed there on dropdown menu. A  B/W icon means that while Firebug is indeed loaded on your computer, that it has not yet been enabled for all the panels.

To enable, right-click on the Firebug icon and select Enable All Panels. After you’re done it should look like this:

The Firebug cucaracha is now in color!

You can choose only one panel too. It’s just preference.

Another thing I should mention is that you can set it so that Firebug doesn’t show up in all pages and just your own. This is because in Firefox, you can have multiple tabs open simultaneoulsy of diff. websites.

Right-click over the icon and select On for All Web Pages or Off for All Web Pages. And that’s it.

What does Firebug look like?

We gotta put it over a website first to try it out. Let’s use Google.com for this exercise. And for those who don’t know, this is what the  Google search engine looks like:

And Google with Firebug activated looks a  little something like this:

See what I mean about ‘docking itself to the bottom’ ? Booyah-shaka.

I don’t want to confuse you but I manually highlited that piece of code. (it turns grey) It doesn’t show up colored on it’s own.

Anyway, let’s survey all the bells & whistles on this thing shall we?

  • Top Navigation Bar: Has all Firebug options (like increasing text size), Inspect Elements icon, Console, HTML, CSS, Script, DOM,  Net and it’s very own search bar
  • Left pane: All source code is displayed here.
  • Righ pane: All the Style and Layout information. So you won’t have to scroll thru all that code jargon just to find the style font or text size, for example. Don’t ask me what DOM is, I have no freaking clue. 😛

What I Use Firebug For

To be honest, the most frequent features I use is the HTML inspector and the Layout to show me sizes & padding.

When I check out other people’s blogs, I sometimes see a cool script and wonder what the name of it is, and where I can grab it? Firebug helps me see the code for it, so sometimes the author’s name is listed in there and I can just look it up.

Before Firebug, I had to look at endless source code to know how to format my own sites (I have a few blogs, not just the SuperMunk). It hurts the eyes to scroll through all that jargon. The more flash/ widgets/ tables/ galleries on your site, the more jargon you will see. It’s especially worse to read when the author of that source code left it looking like a miserable mess.  The kind of HTML/ CSS mess you type up in Notepad in one long consecutive line, or several broken spaces so you can’t figure out what goes where! Frustrating to the hilt 😛

I mentioned before I’m not some I.T. geek, and never took classes for this. I’m also short on time. Honestly, I’d rather be painfully waxing my legs than sitting in front of my screen for several hours reading a big fat mess.

But I do understand the importance of having a fully functioning site with useful scripts, so getting my hands on good code is essential. And not just that, but Firebug helps me see where I screwed up my own code and how it’ll look in a preview before making permanent changes to my own site.  Super helpful tool, it is!

Using Firebug To Make Changes

I will show you how to do this. First, let’s bring up that Google image once again:

The grey code I highlighted  pertains to the Google logo. It’s embedded on as an image file called nav_logo6.png.

As an experiment, we’re gonna mess with this Google’s front page. I am gonna change the blah white background color to a cranberry color.

To change the background color we change the hexachromal values  from white (#ffffff) to our cranberry color.

But SuperMunk, how am I supposed to know what that means? WTH?

Ok you impatient-Ishmael! Pay attention now. In cyberspace, all colors are assigned number values called hexachrome values made up of multiple digits/ letters. The color white happens to be #ffffff , see? We can take shortcuts here because no one in their right mind has these color values memorized. Don’t worry, no one’s gonna judge you!

For my shortcut, I use a helpful website called ColorPicker and it looks a little like this:

And that’s the value we’re going to use. Good ol’ #DD4571 .

So we actually just click on the background value in Firebug. Yes, it lets you change it from there. Just click on it and you’ll see, like so!

From white to cranberry, we change #ffffff to #dd4571 . It’s not case sensitive so don’t worry.

And behold! Here’s how it looks afterwards!

Isn’t that all peaches or what!

Wanna try something else?

How about erasing that Google image? We just have to go into Firebug and delete that grey highlighted code:

For any images on a website, Firebug will display a bite-sized preview of that image along with it’s pixel size. You can see that for this Google image above overlapping the grey code. When you have Firebug activated and you scroll over any websites, elements get automatically highlighted in blue. I scrolled over the Google image and it turned blue as you can see.

So I right-clicked over the code and chose Delete Element, and guess what happened?

Something you need to know is that while you see changes occur in real-time, Firebug itself cannot actually change an actual website’s code. That’s something you need to log into the actual website’s template to do. Firebug can show you previews of changes in real-time you are able to make, but doesn’t keep them.

Don’t get discouraged though! Keep reading and I’ll show you how to get around this❁

Selecting Elements On A Website With Firebug

I refreshed the Google page so it didn’t save the cranberry color and went back to boring ol’ white. It also brought back the image. But we can change it to a chartreuse color! (yellow-greenish) The reason for this, is so you can see the blue outline of the elements stand out as we put our cursor over them.

To be able to select elements:

  1. Click on the Firebug cucaracha icon like the picture above. (the icon on the left-hand side on the Navigation Bar, not the icon on the Status Bar)
  2. Click on the Elements icon. It’s the rectangle with the blue arrow on it. It’s placed to the left of the cucaracha. Ok, I circled it in black, just like in the above picture!
  3. Now you can click on HTML or CSS or anything on the Navigation Bar. Personally I want to see the HTML code so that’s what I selected

See? I passed my cursor over the image and it highlighted in blue. Simultaneously, it’s source code also highlighted in blue as you can see in the left pane of Firebug.

But now, hold the phone…what if this was your site and you messed with it’s look and now you want to actually make permanent changes?

Editing With Firebug

Like I said, Firebug can only show you previews of changes. It can make actual changes for you but not save them. Any changes revert to previous state upon page refresh. Because Firebug works alongside web browsers, not websites. So to say Firebug edits is a sort of misnomer in itself.

So SuperMunk, how the hell am I gonna set my changes now? I just finished tweaking my page for the last hour or so!

Don’t cry! Dry your eyes! For SuperMunk has your solution…☻

All you have to do is export those changes into an editor program, and you can save changes there instead for uploading later to your site.

Such editing programs to use: Notepad, Wordpad, Microsoft Word, or any text editor. Personally I use Notepad ++. It’s freeware, and helpfully sets each line of code in it’s own line space, so you don’t end up with a big fat mess like I mentioned earlier.

So after all your tweaking…

Click on the Firebug icon on the Nav Bar > Open With Editor > Configure Editor.

Now Configure Editor is your only visible option if you haven’t already set which editor to use. So let’s configure right now, shall we?

  • Under Name: You can call it whatever you want. Even some silly sounding gibberish.
  • Under Executable: Click the Browse… button and pick an editing program from your computer.
  • Click the Ok button when you’re done. That’s it. You’re done with that.

Did it work? Let’s find out…

So if I click on Notepad ++ there, it automatically pulls all the source code from whatever website I’m looking at right into my Notepad ++ editor. It will look like this:

And that’s all she wrote! So go ahead and edit what you’ve got now. Save a copy to your computer and upload to your website or blog. Done.

So that’s pretty much it.

I should mention it’s in bad form to just swipe code that someone worked very hard to make from scratch. Some folks give their scripts away; some don’t. Permission sets are usually written into the codes so you will see it in Firebug. Always ask or only use what’s for free. There are ways to find out if someone ripped your code so I suggest you not become an asshat that steals. Remember that everything in cyberspace leaves a trail right back to you. Major search engines can penalize you for this (will talk about it in another post) so I wouldn’t try it for anything other than educational purposes.

Know right now that any template adjustments you will ever make all take their sweet time, but this tutorial I just gave only means to cut that time short for you. Also, even if you’re a N00B, don’t sweat it.  The beauty of it is that you can fuck up all the changes you make, see it in real-time and undo over & over by clicking on the icon. Amazing.

Play with all the features on Firebug all you want. There are video tutorials on YouTube also. Have fun and lemme know how it goes!

26 responses to “Check Edit HTML Code with Firebug

  1. Hey..cool bro.

  2. Haha I figured you were a”chick”.

    Anyways nice post. But I’d like to point out that Microsoft Word as an Editor is a VERY bad idea! Regular notapad and Notepad ++ is great and FREE. Good post I learned a few things

    • I agree. And now there’s the always *free GoogleDocs. Plenty of opensource word editors, and on ocassion I do use the ol Notepad ++ as well.

  3. Hi, do you know what Firebug function I can activate so that when I open the web page, the file size (how heavy the image is) will appear instantly?

    • You say you want Firebug to help you attach large image files? Let me see the image and the website you want this on.

  4. Hey Supermunk! SO this post was informative, but I’m still having a problem. I build sites, but i let coders from china handle my intricate CSS coding. When I decide I want to change a portion of it like a menu button, I find it with firebug, but then i have no CLUE what page its located in under my hosting. They will have 20 pages of stuff and I don’t know where to find the code that i edited with firebug… HELP!

    • Dude, your company offers a multitude of web design services. How is it that you not know how to look for a button amidst a sea of ’20 pages of stuff’?

      Now I will reply to your comment but it comes at a pretty price, my duckling. And that price is, I’m gonna make fun of you. Hell, I reserve the right to tar & feather anyone who comes to ye olde SuperMunk.worpress.com site. You have all been warned…!

      Ok, enough chiding. Lemme take a look at your site…

      Ok Mr.Webdesigner, I was able to change a button on your menu options from, say, Photography, to Erotica. (ha! i can do dat)
      <img src="Photobucket” alt=”” />

      From your comment, I can only come to one of three assumptions:
      1) You lucked out with that job of yours and your employers really have no idea you know little to nothing of web design
      2) You are the top brass there and outsource web design to our fellow Mandarin-speakers (in terms of business, the time diff. works against your favor. So does having that department on the other side of the planet where you can’t collaborate with them in person to oversee changes)
      3) You’re just lazy and want me to do your work for you

      You cannot use me as a consultant to clean up whatever mess you’re in. That goes for everyone on this board. SuperMunk is reasonable though…I will be more than happy to disperse some lengthy, albeit mediocre, consultation services after dispatching an invoice and receiving your Paypal wire transfer but, real good advice ain’t free my friends. This is America, dammit! Let’s hear it for free enterprise! VIVA L’AMERICA! Questions? Email me for details.

      Here’s my generic advice…I was able to make those changes with the same methods I used in my tutorial. In theory, this should be no problem for you. I’d like to point out that you should’ve told me what button you wanted changed and I could’ve provided a screenshot of it.

      Look, it doesn’t matter how many pages your site has. As long as you can see it on your web browser, you can change it. Now go to my Firebug post and find Editing With Firebug and repeat those steps, cuz I think that’s where you went wrong. (save those changes 2a place on your computer that’s easy for you to find, like the desktop!)

  5. Pingback: Tìm hiểu về firebug

  6. Helpful post… do you know how to get a little thumbnail image/preview of your entire website? My screen is small and I would like to see the entire website… I have seen this done, but can’t seem to figure out how….

  7. I use IntenseDebate for my comments on my wordpress site. How do I get rid of the “Login with IntenseDebate”? (Like you have!) I understand what to do, but where do I upload it back to? Once I use the editor and delete it, where do I upload what I saved to? I’m scared of ruining my site- I suck at this code stuff..lol

    • Hi Jeanine, thanx for commenting.

      To answer your query, it looks like Intense Debate offers several scripts for many diff. services. As far as I can see, you only have it set to feature your comments sidebar. But like all scripts, you can remove this Intense Debate script, and yes, could be a good chance it’ll throw off your template. Did you remove any code in your template to accommodate the ID script? If no, then it probably won’t screw your template. If so, it will.

      You could just pull out the old template and check side-by-side inside a text editor application. WordPress makes it easy to remove plugins and widgets so I don’t see this getting complicated. Go into Dashboard > Appearance > Widgets (or Plugins) and simply remove the Intense Debate script.

      IF IT MESSES UP YOUR TEMPLATE, good news- just re-upload the (previous) uncustomized template. You may have to re-customize your headers & such but there won’t be a lot of work for you to do since there’s not a whole lot of custom stuff on your site. Luckily the name of the theme you are using is still written in the code, so here’s the address where you downloaded it from. If you have any trouble with it email me or better yet, reach me on my Twitter. Good luck.

  8. hi there ,
    nice post. besides how is it possible to edite a website that is written in js?
    i couldnt find the html file… (info: i am a user of wordpress and i downloaded a template which doesnt give me the chance to change it… damn that script) however after i finished my own scripting page i tryed to link it with the homesite (original site) which wasnt doable…but befor i had this page i was able to change lot of stuff on my older page(which i delet it)
    i was able to give my page a new nev_bar item and so on…
    could you plz help me? and i also googled…
    further thx assil

  9. this was by far the best tutorail that i came across on fire bug editing. JUst one more thing. Can you please tell me how do i upload the edited code to my site?

  10. I was recommended this website by my cousin. I am not sure whether this post is written
    by him as nobody else know such detailed about my
    trouble. You’re amazing! Thanks!

  11. Excellent post. I used to be checking constantly this blog and I’m inspired! Extremely useful information particularly the final phase 🙂 I handle such info a lot. I was looking for this particular info for a long time. Thank you and best of luck.

  12. Where online can an accredited psyciatrist post articles (or blogs)
    for them to become popular?

  13. Thanks for every other magnificent post.
    The place else could anybody get that type of info in such
    a perfect method of writing? I’ve a presentation next week, and I’m on the look for such information.

  14. You actually make it appear so easy together with your presentation
    however I find this matter to be really something that I believe I’d never understand. It kind of feels too complicated and extremely wide for me. I am having a look ahead for your next post, I’ll attempt
    to get the hold of it!

  15. A structure is impeccably as wit as anything Hermes. If you are a normal working women that earns decent to her craving for new collection every month, designer bags are certain
    to get a little over the budget.

  16. You then have a number of practical strategies within this specific building. Amazing you merely study, love pertaining to offering all around!

  17. Many thanks intended for great article in this web site! quite beneficial and also beneficial. Good write-up.

  18. Many thanks designed for great write-up with the internet site! unbelievably helpful plus practical. Outstanding document.

  19. Thanks a lot suitable for excellent write-up with the web page! unbelievably advantageous as well as helpful. Superb content.

  20. Pretty part of content. I just stumbled upon your web site
    and in accession capital to claim that I get actually loved account your
    weblog posts. Anyway I’ll be subscribing
    on your feeds or even I success you get entry to persistently quickly.

Leave a comment