Firefox is displaying a close button on every open tab by default. The active tab is displaying that button in red colors while the rest is using gray to distinguish active and inactive tabs. The close button adds to the length of all tabs which might be a thorn in the eye of users who like to optimize Firefox menus to use as little screen estate as possible.
There is also the kind of user who likes to use the keyboard to close tabs instead of clicking on that button. The keyboard shortcut [CTRL W] will close the active tab as long as Firefox is the active window. That’s convenient and making the close button more or less superfluous.
Another problem that arises when displaying close buttons on all tabs is that the tab size changes dynamically. This becomes apparent when you open many tabs. If you start closing tabs you will sooner or later notice that the close button shifted because of changed tab sizes.
But what are the options that the Firefox developers have implemented in the web browser? The parameter [browser.tabs.closeButtons] in [about:config] handles the close button in Firefox.
- 1: This is the default value, it displays a close button on every tab in Firefox.
- 0: This displays a close button only on the active tab.
- 2: This displays no close button at all.
- 3: Displays a single close button at the end of the tab bar.
Keyboard junkies will probably set the value to 2 to get rid of all close buttons. Users who regularly open many tabs will probably set it to 3 to be able to access the close button in the same place.
Enjoyed the article?: Then sign-up for our free newsletter or RSS feed to kick off your day with the latest technology news and tips, or share the article with your friends and contacts on Facebook or Twitter.Related Articles:
How To Remove The Close Button In The Firefox 4 Add-On BarClose Tabs With A Double Right-Click In Firefox
Close Tabs Efficiently In Firefox
Don’t Like The New Firefox Button? Then Change It!
Firefox History Disable Button, Private Browsing Mode Lite

CTRL-W is a standard “close this document” shortcut in Windows. Another standard way to close a document is CTRL-F4.
Used this for years – I always use ’2′ to get rid of all buttons as middle-click with the mouse is easier.
Hmmm … set to “0″, restarted Firefox (v3.04) but still annoying close buttons on all tabs.
– Update … TabMixPlus addon was overriding the change
https://addons.mozilla.org/en-US/firefox/addon/1950
ALT* + F4
Thanks for the post. I kept accidentally closing the tabs with the default setting but now it’s fixed.