Customize Firefox with CSS

One of the best things about Firefox is all the add-ons available for it that allow you to get it working in a way that is perfect for you. You can also customize the appearance of the browser without the use of add-ons, by simply using regular CSS to edit the userChrome.css style sheet.

By default there is no userChrome.css file. To make it you first have to find userChrome-example.css at one of these locations:

Windows XP/Vista
C:Documents and Settings[user]Application DataMozillaFirefoxProfilesxxxxxxxx.defaultchrome

Mac OS X
~/Library/Application Support/Firefox/Profiles/[profile-name]/chrome/

Once you find userChrome-example.css in the /chrome directory, make a copy of it to keep the original as a backup, rename the copy userChrome.css and place the copy in the same directory. Firefox looks for userChrome.css here and if it exists will respect the style rules you put in it. Then you simply add your styles, restart Firefox and voila! Here are some examples of common styles:

/* Make the Location (URL) Bar use a bigger font */
#urlbar {font-size: 14pt !important;}

/* Add more space to the Personal Toolbar */
toolbarbutton.bookmark-item {margin: 3px !important;}

/* Force bigger display of folder tree within “bookmark this page” popup */
#editBMPanel_folderTree {min-width:600px !important;min-height:500px !important;}

/* Force wider display of “bookmark this page” popup */
#editBookmarkPanelContent {min-width:600px !important;}

More information on CSS selectors that can be utilized in userChrome.css can be found at: http://kb.mozillazine.org/UserChrome.css_Element_Names/IDs

Comments are closed.

Recently on Twitter

  • RT @LOLGOP: Remember when the GOP tricked you into being enraged about the deficit they created.
    Feb 9, 2012
    via web
  • Facebook for Android is hands down the worst app of any kind I have ever used.
    Feb 8, 2012
    via Twitter for Android
    from Bainbridge Island, WA
  • February, Bainbridge Island. http://t.co/1XyU7A7C
    Feb 4, 2012
    via Twitter for Android
    from Bainbridge Island, WA
  • Ohhh..having my own little toothpocalypse....Uff da
    Feb 1, 2012
    via Twitter for Android
    from Bainbridge Island, WA

Recent Cycling

  • 13.40 miles on 02/02/12
  • 19.50 miles on 01/28/12
  • 28.30 miles on 01/27/12
  • 32.51 miles on 01/14/12
This Month:

13.40 miles

Last Month:

175.96 miles

This Year:

189.36 miles

Last Year:

724.76 miles