Firefox tab "close" button to appear when you hover over a tab?


Recommended Posts

That's odd. I haven't touched that parameter (in fact, it's set to 140 in my profile), and I don't notice this problem. The close button appears on background tabs even when I have so many tabs open that the scroll arrows appear.

Let me make myself clear. This is what I am seeing on my end running Firefox 4.0 on my Windows 7 x64 Ultimate PC. There seems to be three (3) scenarios.

1. If I change the Firefox "browser.tabs.tabClipWidth" preference from the default value to something less than 100 and do NOT use a userChrome.css file, then no matter how many tabs I have open, I see a tab close button on every tab whether hovering over a tab or not.

2. If I do not touch the "browser.tabs.tabClipWidth" preference and leave it with the default value of 140 and only use a userChrome.css file with the following code below, then the userChrome.css file does NOT appear to do anything. In this case, Firefox appears to work the same for me as a standard install. Only the active/foreground tab shows a close button and I must click on an inactive/background tab (making it the active/foreground tab) to get a close button.

3. If I both change the "browser.tabs.tabClipWidth" preference to a value less than 100 AND use a userChrome.css file with the following code below, then inactive/background tabs do not show a close button. However, unlike scenario 2 above, if you hover over an inactive/background tab, then the close button appears and you can close the tab without having to first click on the tab (and make it the active/foreground tab to get the close button like in scenario 2 above).

.tabbrowser-tab:not([selected]) .tab-close-button {

visibility: hidden !important;

margin-left: -16px !important;

}

.tabbrowser-tab:not([selected]):hover .tab-close-button {

visibility: visible !important;

margin-left: 0px !important;

}

Thanks. I had seen solutions involving the Stylish extension, but nothing for sure that involved just modifying the userchrome.css file. I'll check out the code.

using stylish is the same as modifying the userchome.css file just with less hassle

using stylish is the same as modifying the userchome.css file just with less hassle

I'm sure Stylish works well and is convenient, but since I install 20-30 addons usually, I try to use very tiny tightly written addons if at all possible. I only use a couple of addons larger than 200KB. So, I choose to avoid something like Stylish unless really necessary, even at the expense of a bit of work. That said, creating a text file like userChrome.css, to me at least, is trivial and no big deal.

  • 4 months later...

I was looking for something like this and stumbled upon this forum. I'm now using the Win7 Close Buttons from Pastbin, in Stylish. Thank you for this!

However, I can barely see the close buttons when hovering on other tabs and would like to always see the red close button when hovering so I can move the mouse pointer directly to the button. If this is not possible than always seeing the red button would be OK.

Using the Win7 Close Buttons style, I have to first click on a tab, then I see the red close button but only on that current tab. But when hovering on background tabs, I can barely make out the tiny "x".

I don't see any difference regardless whether browser.tabs.tabClipWidth is 140 or 98.

Any help is appreciated. I am not a CSS programmer. Please see attachement.

Thank you in advance.

Firefox 6

post-409618-0-36882600-1314231999.jpg

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Yes, it was amusing at the time because even then dbrand was well known for stealing the designs of products from other companies. That’s what they do.
    • Didn’t Dbrand once complain that Casetify was ripping off their designs a well? seems pretty bad of them to try and get around Valve’s copyright this way with that in mind.
    • Dbrand thought they could get away with this Steam Machine case, Valve disagreed by David Uzondu Image via Dbrand Dbrand has cancelled its highly anticipated Companion Cube enclosure for the Valve Steam Machine, which it teased back in November of last year with a concept render and sign-up page, because it did not ask Valve for permission first before manufacturing the case. According to Dbrand, it took the "backwards approach" of building the product first before asking for permission from the copyright holder. Seven months of work went into the project, requiring over a thousand engineering hours from the design team. Workers developed forty-four sets of injection molding tools, making a unique mold for each sub-component of the crate. When the Companion Cube went live on Monday last week, it, according to Dbrand, quickly became the second-fastest-selling product in the company's fifteen-year history, racking up orders for hundreds of thousands of units. Customers eagerly bought the $129.95 deluxe edition or the bare-bones $99.95 version, which the manufacturer cheekily branded as the "Poverty Cube". It was around this time that the legal eagles at Valve descended on the accessory maker with a formal demand. The developer pointed out that the iconic block design remains protected intellectual property from the game Portal, so unlicensed sales had to stop. Dbrand said that all its pleas to salvage the project with the Valve team, including proposals to run a properly licensed release under official terms "with their blessing", fell on deaf ears, so it had no choice but to obey and remove every trace of the product from the internet. If you bought the enclosure, the company said that banks will process your refund by the end of this week, but if it still hasn't arrived in your account by then, you should not hesitate to contact support. The Steam Machine itself is a high-performance console that Valve designed directly to bring PC gaming into the living room. It was announced on 12th November 2025 (the same day Dbrand announced the Cube) and runs on the Linux-based SteamOS, the same OS that powers the Steam Deck. As for the price, due to the shortage of memory and storage chips, the hardware cost landed much higher than people were expecting, starting at $1,049 for the 512 model (without a controller) or $1,128 with the new gamepad. The premium 2 TB model pushes those prices even higher, selling at $1,349 for the standalone console and hitting $1,428 if you want the bundle.
  • Recent Achievements

    • Rookie
      Almohandis went up a rank
      Rookie
    • Apprentice
      jahara21 went up a rank
      Apprentice
    • Reacting Well
      NovaEdgeX earned a badge
      Reacting Well
    • Week One Done
      NovaEdgeX earned a badge
      Week One Done
    • One Year In
      BA the Curmudgeon earned a badge
      One Year In
  • Popular Contributors

    1. 1
      +primortal
      534
    2. 2
      +Edouard
      266
    3. 3
      PsYcHoKiLLa
      148
    4. 4
      Steven P.
      97
    5. 5
      macoman
      57
  • Tell a friend

    Love Neowin? Tell a friend!