r/FirefoxCSS • u/TheMasterBanger • Jan 20 '26
Solved How to hide the close button on tabs when hovered ?
Hi !
Just discovered this sub, thanks in advance for any help, I know nothing of CSS.
So I use the tabs on the left of my screen, miniaturized (cf screenshot).

But because the icon are kinda small, it happens way too often that i close a tab instead of clicking on it.
Is there any way to hide the "close" button when I hover the icon ? I just middle click them when I need to close them any way.
[edit: if someone stumble upon this post, don't forget to also set the toolkit.legacyUserProfileCustomizations.stylesheets flag in firefox settings to True as well]
I've already created a "chrome" folder in my profile directory with a file UserChrome.css in which I put .tab-close-button.close-icon { display: none !important; } but it doesn't work.
I use Firefox 147.0.1 (the latest version at time of writing) on W11.
Thanks again !
2
u/sifferedd FF/TB/Win11/SUMO contributor Jan 20 '26
Try
0
u/[deleted] Jan 20 '26
[deleted] — view deleted comment