< Day Day Up > |
Editing userChrome.cssThe userChrome.css file is used to control what Firefox looks like. Hundreds of possible settings can be placed in this file, all of which contribute to the look and feel of Firefox. Mozilla provides you with an example file (userChrome-example.css) you can use as the basis for your userChrome.css. To do this, copy the example file provided to a new file named userChrome.css. This file may then be edited in your favorite text-based editor (either Notepad or WordPad work fine for this task). Most Firefox users don't realize just how customizable the user interface is. With userChrome.css it is possible to define the appearance of the following items. The list is not an exhaustive list of everything that can be set. Rather, it is intended to be representative of what can be customized in Firefox. As an example, menus in Firefox (and in any program, really) consist of some of the following objects:
You are able to set many aspects of what you see in each of the menu categories. For example:
There are other attributes that may be set; these are examples of common attributes that many users might use. For example, you might want to change the appearance of Firefox's menus. The code to do this in the userChrome.css is shown in Listing 6.2. Listing 6.2. A Sample userChrome.css File/* Actual menu bar */ menubar > menu { /* Set border to 1 pixel */ border: 1px solid transparent !important; /* set padding top bottom left right */ padding: 2px 5px 2px 7px !important; /* set margins */ margin: 0 !important; /* don't use a solid color, use image as background */ background-image: url("FeatherTexture.bmp") !important; } /* Selected menu item main menu */ menubar > menu[_moz-menuactive="true"] { /* default background color to the predefined color named 'Highlight' */ background-color : Highlight !important; /* default color to the predefined color named 'HighlightText' */ color: HighlightText !important; /* Don't use a solid color, use image as background */ background-image: url("Santa Fe Stucco.bmp") !important; } /* Selected menu item popup menu */ menupopup [_moz-menuactive="true"] { /* default background color to the predefined color named 'Highlight' */ background-color : Highlight !important; /* default color to the predefined color named 'HighlightText' */ color: HighlightText !important; /* Don't use a solid color, use image as background */ background-image: url("Zapotec.bmp") !important; } Now, some more information is in order:
Note The userChrome.css file can be simple or complex. For more extensive modifications, I strongly recommend that you back up your userChrome.css files and the entire user's profile folder set. |
< Day Day Up > |