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

    • Sparkle 2.20.1 by Razvan Serea Sparkle is a free, open-source Windows optimization tool designed to make your PC faster, cleaner, and more private. With Sparkle, you can easily debloat Windows by removing unnecessary apps and services, disable Microsoft tracking to enhance privacy, and apply performance tweaks to boost speed. Its cleaner removes junk and temporary files, while every change is safe and fully reversible. Sparkle also features a modern, user-friendly interface with automatic updates, making system maintenance simple. Explore over 39 tweaks, from disabling telemetry and hibernation to optimizing network and game settings, all aimed at customizing and enhancing your Windows experience. Sparkle supports Windows 10 and 11. Sparkle 2.20.1 changelog: You can now change the Animation Direction from Up, Left, or Off. Added configurable animation direction (Up, Left, Off) for improved accessibility Added TTL caching to the system info backend Refactored tweak application flow to await NvidiaProfileInspector Improved IPC listener cleanup to correctly remove specific listeners Fixed online status not updating after successful network requests Updated system info tests to support backend caching Removed electron-toolkit utils dependency in favor of internal is.dev helper Fixed unwanted files and folders being included in application bundles Download: Sparkle 2.20.1 | Portable | ~100.0 MB (Open Source) Links: Sparkle Website | Github | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Never used the G7 Pro, but I've never had a good experience with that style of d-pad and fighting games.
    • And I just bought a seat cushion for my mesh chair. The chair feels nice but the first time I sat in it with boxers, I realized I don't like the feel of mesh on my legs. 😂
    • "This Dell 27 inch 4K 120Hz IPS monitor is really cheap after a very long time" ... Lol.
    • This Dell 27 inch 4K 120Hz IPS monitor is really cheap after a very long time by Sayan Sen Recently we covered a really good deal on an AMD RX 9070 three-fan model that's available at slightly above its MSRP. If you are looking for a GPU for 1440p gaming that's around the performance of the Nvidia RTX 5070 you should most definitely check it out. Let's say that you are looking for a monitor to pair that up with too. The Samsung 49" G9 curved QD-OLED superultrawide is a good option that can provide an immersive experience. However despite being a very good deal currently (at $855), it may seem unaffordable to you, or you may simply not want to spend as much on a monitor. In that case Dell's S2725QS can be a very good option as it's on sale at the moment for its lowest price in over six months (purchase link under the specs table down below). The big highlight of the Dell S2725QS is its 27-inch IPS panel with a 3840 x 2160 (4K UHD) resolution, offering a high pixel density that can make text appear sharper while also providing plenty of screen space for productivity and media consumption. The display supports a refresh rate of up to 120Hz through both HDMI and DisplayPort, making it suitable not only for everyday desktop use but also for smoother gaming and scrolling. AMD FreeSync Premium support is included as well, helping reduce screen tearing during gaming sessions. The screen has fairly good brightness and color accuracy so you can use it for general work purpose, though photo/video editing is probably not going to be the best match for this. The technical specs of the Dell S2725QS are given in the table below: Specification Value Viewable Screen Size 27 in (68.58 cm) Screen Mode 4K UHD Maximum Resolution 3840 × 2160 Maximum Preset Resolution 3840 × 2160 @ 120 Hz Standard Refresh Rate 120 Hz Panel Technology In-plane Switching (IPS) Backlight Technology LED Edgelight System Pixel Density 163 PPI Response Time 8 ms GTG, 5 ms GTG, 4 ms GTG Horizontal Viewing Angle 178° Vertical Viewing Angle 178° Brightness 350 cd/m² (nits) Native Contrast Ratio 1500:1 Color Support 1.07 Billion Colors Color Gamut 99% sRGB (CIE 1931) Adaptive Sync AMD FreeSync Premium HDCP Support Yes Mount Type Panel Mount VESA Mount 100 × 100 mm Maximum Height Adjustment 13 cm Tilt -5° to 21° Swivel -30° to 30° Pivot ±90° Stand Adjustments Tilt, Swivel, Height, Pivot Glass Hardness 3H Horizontal Frequency 27–270 kHz (DisplayPort 1.4 / HDMI 2.1) Vertical Frequency 48–120 Hz (DisplayPort 1.4 / HDMI 2.1) Video Inputs 2 × HDMI 2.1 (HDCP 1.4 & 2.3), 1 × DisplayPort 1.4 (HDCP 1.4 & 2.3) Operating Temperature 0°C to 40°C Storage Temperature -20°C to 60°C Operating Humidity 10%–80% (Non-condensing) Storage Humidity 5%–95% (Non-condensing) Get it at the link below: Dell S2725QS 27-inch 4K 120Hz IPS monitor: $218.49 (Sold and Shipped by Amazon US) (Was: $280) Good to know This Amazon deal is U.S. specific, and not available in other regions unless specified. We only use first-party seller links (at the time of article publishing); ensure that you purchase from a first-party seller link only. Check out Today's Deals on Amazon | or our recent tech deals. Become a Prime member (for Students or SNAP) via Neowin Get Prime Access - Prime for half price (for qualifying Medicaid, EBT, SNAP) Subscribe to Prime Video, Audible Plus, Music Unlimited or Kindle Unlimited via Neowin As an Amazon Associate, we earn from qualifying purchases
  • Recent Achievements

    • Conversation Starter
      jessse3334 earned a badge
      Conversation Starter
    • Reacting Well
      JuvenileDelinquent earned a badge
      Reacting Well
    • One Month Later
      Excellence2025 earned a badge
      One Month Later
    • Week One Done
      Excellence2025 earned a badge
      Week One Done
    • Week One Done
      flexorcist earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      499
    2. 2
      +Edouard
      243
    3. 3
      PsYcHoKiLLa
      153
    4. 4
      Steven P.
      84
    5. 5
      macoman
      64
  • Tell a friend

    Love Neowin? Tell a friend!