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

    • Google pitches Spanner as one database for all AI agents with these new featues by Karthik Mudaliar Google Cloud is introducing new features within Spanner, its distributed database, as a place where enterprises should keep their data, using which AI agents could make smarter and better decisions. In a detailed blog post, Google highlighted quite a few features coming to Spanner, including relational data, graph relationships, vector search, key-value access, full-text search, and operational analytics together in one database architecture. Google says that today's systems aren't well-made for AI agents. There could be data that is present in one system, search indexes in another, embeddings in a vector database, and relationship data in a graph database. This fragmentation isn't great for AI agents to do their jobs because they don't have access to all of this data in one place. This is where Google is positioning Spanner as a solution. Spanner is already a globally distributed relational database with strong consistency, and Google wants its customers to see it as a broader data layer for AI applications. The company introduced something called Spanner Graph, along with integrated vector search, full-text search, a Cassandra-compatible key-value endpoint, and a columnar engine for analytical queries on operational data. Google also added that its ScaNN-powered vector search can support indexes with more than 10 billion vectors, while the columnar engine can make some analytical scans up to 200 times faster. All of this isn't just exclusive to the Google Cloud Platform, and there's support for multi-cloud as well. This comes via Spanner Omni, which Google says is a downloadable, containerized version of Spanner that can run on Kubernetes and in environments outside Google Cloud, including Microsoft Azure and AWS, and even on-premises infrastructure as well as edge deployments. Google says that customers who are interested in the full-featured edition should contact the company, and there's no word on commercial availability or separate pricing. Those interested can read the full blog by Google Cloud, which details these features individually.
    • Kalmuri 4.2.5 by Razvan Serea Kalmuri is your all-in-one, portable screen capture and recording solution designed for speed, simplicity, and flexibility. Whether you need a full-screen snapshot, a custom area, a scrolling webpage, or smooth video recording, Kalmuri delivers with ease. Capture text instantly from images with built-in OCR, keep floating images on top for quick reference, and use the precise color picker for perfect design matching. Customize hotkeys to work your way and share results instantly with built-in upload options. Kalmuri runs without installation, making it ideal for USB use, and offers an intuitive interface that’s easy to learn. Kalmuri key features: Video recording support (designation of whole screen and area) Whole screen, active program, window control, area application Extract text from images using optical character recognition (OCR). Support for PNG, JPG, WEBP, BMP, GIF file formats MP4 video recording powered by FFmpeg for high-quality results Full web page capture Share the captured image on the web Color extraction function Printer output Hotkey settings Adjustable via keyboard for area capture (Arrow key, Ctrl+Arrow key, Shift+Arrow key) File name format (sequential, datetime) Free to use it at work, at home, in government offices, at school, etc. Using Kalmuri portable for video recording Kalmuri’s portable version doesn’t include FFmpeg, which is required for video recording. Without it, you’ll get an “error FFmpeg.exe not found” message. To fix this, download FFmpeg from the provided link, extract it, and place FFmpeg.exe in Kalmuri’s folder. Kalmuri will then recognize it automatically, allowing you to start recording in high quality instantly. Kalmuri 4.2.5 changelog: Fixed an intermittent crash when using Area Capture Improved stability for Area Capture and screen recording Resolved a capture issue that could occur right after startup Download: Kalmuri 4.2.5 | 24.2 MB (Freeware) Download: Kalmuri Portable 4.2.5 | 2.1 MB View: Kalmuri Website | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • They have lots of info on me, I have a facebook account and have done so for years, it was the thing to have then. My phone number is not on it. I don't have the Facebook app on my phone these days, just the messenger part, and only for a couple of people to contact me, most will text me via SMS or phone. I agree, Meta, like others, even without an account will know something about me. Just have to try and keep some things private Also, never saw the need for Whatsapp, people used to ask for me to join it, but as I said to them, I have SMS and a phone, use that, or email
  • Recent Achievements

    • First Post
      rosiecharles earned a badge
      First Post
    • Reacting Well
      Juan Dela earned a badge
      Reacting Well
    • Week One Done
      Collagen Project earned a badge
      Week One Done
    • Reacting Well
      Wakeen1966 earned a badge
      Reacting Well
    • Rookie
      Almohandis went up a rank
      Rookie
  • Popular Contributors

    1. 1
      +primortal
      517
    2. 2
      +Edouard
      273
    3. 3
      PsYcHoKiLLa
      143
    4. 4
      Steven P.
      100
    5. 5
      macoman
      54
  • Tell a friend

    Love Neowin? Tell a friend!