cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the 'x' close button by hovering over unselected tabs.

SOLVED
Highlighted
New Contributor

How to get the 'x' close button by hovering over unselected tabs.

I miss being able to close tabs without having to select them first. Is there a way to get the old functionality back of having the 'x' close button appear with mouse-over?

1 ACCEPTED SOLUTION

Accepted Solutions
New Contributor

Re: How to get the 'x' close button by hovering over unselected tabs.

You could try right-clicking which gives you a menu that lists a 'close tab' option.

14 REPLIES
Shooting Star Contributor

Re: How to get the 'x' close button by hovering over unselected tabs.

By default the Close buttons appear on all tabs.

  1. Type about:config into the address bar and press Enter.
  2. Press the big button to bypass the warning.
  3. In the search bar, paste browser.tabs.closeButtons
  4. In the search results, double-click browser.tabs.closeButtons and set its value to 1

If you want to hide the Close button on inactive tabs and show it only on mouseover,
1. Install the Stylish add-on.

2. Open the Add-ons Manager, User Styles category and click the Write a New Style link at the top.
3. Paste the following in the style editor box and click the Save button.


@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

.tabbrowser-tab:not([selected]) .tab-close-button {
  visibility: hidden !important
}

.tabbrowser-tab:not([selected]):hover .tab-close-button {
  visibility: visible !important
}

If I'm not mistaken, this is also an option in the Tab Mix Plus add-on.

Site Moderator

Re: How to get the 'x' close button by hovering over unselected tabs.

Note that Firefox hides the close button on inactive tabs if there are enough tabs open to make them shrunk below a specific minimum.

New Contributor

Re: How to get the 'x' close button by hovering over unselected tabs.

You could try right-clicking which gives you a menu that lists a 'close tab' option.

Site Moderator

Re: How to get the 'x' close button by hovering over unselected tabs.

The easiest way to close a tab is to middle-click the tab with the mouse scroll wheel.

New Contributor

Re: How to get the 'x' close button by hovering over unselected tabs.

Thanks for all your help, everyone!

New Contributor

Re: How to get the 'x' close button by hovering over unselected tabs.

In about:config change the value of browser.tabs.tabClipWidth to 50.

New Contributor

Re: How to get the 'x' close button by hovering over unselected tabs.

You said by default the close button appears on all tabs. Well, now it doesn't. It's been moved to one singular close button on the right that does nothing but slow the work process down.

How do I get a close button to appear on each tab again?

Site Moderator

Re: How to get the 'x' close button by hovering over unselected tabs.

Sounds that the browser.tabs.closeButtons pref has been changed to 3, see:

New Contributor

Re: How to get the 'x' close button by hovering over unselected tabs.

Thank you for your reply.

However, I did the about:config thing, and the value for Browser.tabs.closeButtons was already set on 1, which is the default, which should display a button on each tab. I've enclosed a screen shot.

I don't know why this went sideways. FF asked for an update a couple of nights ago, so I let it do the update and then shut it down, because I was done for the night. When I turned it on the next day, that's when the problem appeared, and I hate this browser more and more every day it stays this way.

What else can I try?

2013-11-23-08-35-47-a91830.png