ghacks Technology News

Change The Location Of Close Button In Firefox

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 Bar
Close 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



About the Author:Martin Brinkmann is a journalist from Germany who founded Ghacks Technology News Back in 2005. He is passionate about all things tech and knows the Internet and computers like the back of his hand. You can follow Martin on Facebook or Twitter.

Author: , Thursday December 11, 2008 -
Tags:, , , , , ,


Responses so far:

  1. Doc says:

    CTRL-W is a standard “close this document” shortcut in Windows. Another standard way to close a document is CTRL-F4.

  2. Amos says:

    Used this for years – I always use ’2′ to get rid of all buttons as middle-click with the mouse is easier.

  3. Ken says:

    Hmmm … set to “0″, restarted Firefox (v3.04) but still annoying close buttons on all tabs.

    – Update … TabMixPlus addon was overriding the change

  4. Yansky says:

    https://addons.mozilla.org/en-US/firefox/addon/1950

  5. Rob says:

    Thanks for the post. I kept accidentally closing the tabs with the default setting but now it’s fixed.

Leave a Reply   Follow Ghacks   Subscribe To Comment Rss

Subscribe without commenting

© 2005-2012 Ghacks.net. All Rights Reserved. Privacy Policy - About Us