Quick Firefox/CSS tip

Posted by tieg Fri, 09 Jun 2006 20:31:00 GMT

If you ever do something like   * { margin: 0; padding: 0; } in your stylesheets to override default browser styles, you might be curious as to what the actual default browser styles are so you can backtrack and reset some (for example, putting the padding back on OPTION).

For the Firefox default styles:

OS X:

Find the Firefox package (usually in your Applications folder). Right-click on it and choose “Show Package Contents”. Go into “MacOS” and then “res” and you’ll find the motherload (for example, form styles are in forms.css).

WinXP:

Browse to the Firefox directory, which is usually at “C:\Program Files\Mozilla Firefox\”. Go into the “res” directory and voila.

Comments

Leave a response

Comments