Firebug for CSS Troubleshooting

Leave a comment

October 12, 2010 by huionn

Today while I was trying to figure out (confusing) CSS precedence rules, I discovered a useful feature of firebug.

Right click any element and click “Inspect Element” in the context menu, a firebug window like above will be shown. In the right hand side Style panel, it shows the style precedence graphically. Overridden styles are strike-through. Computed and Layout can also ease up CSS troubleshooting effort.

Btw, the web page shown is http://www.vanseodesign.com/css/css-specificity-inheritance-cascaade/ which is a detailed guide to understand style precedence in depth.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: