Firefox + Firebug + Web Developer Add-on = Easily Edit and Save CSS on Live Sites

Mad ScientistI would pay to be able to edit the CSS of live sites and see the CSS take affect. I would pay but I don't have to with Firefox and the Firebug and Web Developer add-ons. I have written about Firebug before, which has been both a life saver and a productivity booster in that it gives you the ability to quickly identify elements within a design. Web Developer is an add-on I feel that I should have known about and am kicking myself for not knowing about it sooner. Besides the plethora (been waiting to use that word) of options, it gives you the ability the see and edit the CSS files affecting the page you're on and the edits affect the site live.

Using my site as an example, here is how I've learned to use it:

Firebug Firefox Menu

First, I right click the element I want to edit and select Inspect Element, which brings up Firebug at the bottom of the screen. In this case, it is the blog post title. Note that you must have Firebug installed first and have restarted Firefox.

Firebug bottom screen

In the screenshot above, you can see that Firebug displays the the page markup on the left and the CSS code of the selected element on the right. I take a note of the class that affects the font size, the css file it is in, and even the line.

Web Developer Right Click Menu

Next, I close the Firebug screen (you can leave it open but it takes up sceen space) and right click the title again, but this time I go down to Web Developer > CSS > Edit CSS. This brings up the Web Developer CSS editor.

Web Developer Screen

In the screenshot above, you can see tabs for each of the CSS files that affect the layout. The one I'm interested in is the style.css file. Here you can edit or write in any css code you want and the site will be updated live! Once you have it exactly how you want it, you simply click the save icon, save the .css file, and upload it to your host.

I know that with Firebug, you can edit sites and see the affect live but Firebug does not allow you to save the changes. You still need to copy and paste them into the .css file. With this combination, I've been able to dramatically speed up my workflow in that I don't need to open another editor (sad to not be using Coda as much) and I don't need to referesh every 30 seconds.

Update: Just want to give credit to Mark Wenzel who plays the mad scientist in the pic above. He saw this post and I want to give him credit. Click here to see the rest of his work. Thanks, Mark!

Comments

May
23

I don't understand why the Firebug creators don't add this feature. Should be the next step in my opinion.

by JuEgoS (not verified) | May 23, 2010
Jun
29

I'm not sure why since Web Developer does, but when you use both, it's not a problem.

by Ash | June 29, 2010
May
13

A little complicated, don't understand why Firebug isn't saving the edited files by default.

by JuEgoS (not verified) | May 13, 2010
Dec
10

it's really usefui!

by zisel (not verified) | December 10, 2009
Dec
02

Check out my Firebug Addon:
https://addons.mozilla.org/de/firefox/addon/52365/

It actually saves the Firebug- "touched" css files on demand to your web server (by communication with a one-file webservice php script).

Documentation can be found here:
http://www.strebitzer.at/projects/firefile/docs/

I would appreciate any bug reports, comments, ratings, discussion on this,

thanks in advance,

by Tobias Strebitzer (not verified) | December 2, 2009
Nov
14

Yes, your method is cool to edit css files, but if you want edit not a CSS file or a PHP element like an "div class=ja-breadcrums", how do you do it? Thanks for reply. Ben

by Ben (not verified) | November 14, 2009
Aug
18

It is much easier to understand your information with these your examples.

by Janet (not verified) | August 18, 2009
Jul
20

Thank you for this article Cooool

by idevit (not verified) | July 20, 2009
Mar
31

Cool!! Thanks for the tip. I'm using both right now :)

by visitor (not verified) | March 31, 2009

Post new comment

The content of this field is kept private and will not be shown publicly.