Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More
Èròjà atẹ̀lélànà yii ni a ti fi pamọ́ fọ́jọ́ pípẹ́. Jọ̀wọ́ béèrè ìbéèrè titun bí o bá nílò ìrànwọ́.
Solved A ti fi pamọ́ fọ́jọ́ pípẹ́

Tab Close Buttons Got Too Big After v59 Update

Slouch

After updating FF from 58 to 59, my tab close buttons (X) have gotten larger.

Apparently, Firefox is no longer respecting the following rule in my userChrome.css file...

.tab-close-button *
{
 width: 14px !important;
 height: 14px !important;
 font-weight: bold !important;
}

Is there now a different way to change the tab close button size, or is this possibly a bug?

See attached images showing close button in v58 & v59.

Thanks!

After updating FF from 58 to 59, my tab close buttons (X) have gotten larger. Apparently, Firefox is no longer respecting the following rule in my userChrome.css file... .tab-close-button * { width: 14px !important; height: 14px !important; font-weight: bold !important; } Is there now a different way to change the tab close button size, or is this possibly a bug? See attached images showing close button in v58 & v59. Thanks!
Ìsopọ̀ yíyà aṣàfihàn

Ti ṣàtúnṣe nípa Slouch

Ka ìdáhùn ni ìṣètò kíkà

Ọ̀nà àbáyọ Tí a Yàn

The close X only consists of a SVG image, so you probably only need to remove the "*" to make your current CSS rule work. Note that bold won't work, you would have to create your own image.

Add code to the userChrome.css file below the default @namespace line.


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

.tab-close-button {
 width: 14px !important;
 height: 14px !important;
}

Ti ṣàtúnṣe nípa cor-el

All Replies (7)

Thanks for your reply, and the cornucopia of links above. However, they are not related to my inquiry.

My code was not overridden, because my userChrome.css file has not changed since version 58. Nothing else was added, changed, or removed either.

It was only the update to version 59 that changed the size of the button.

And now the code I posted above is apparently being ignored by FF.

I would appreciate some sample CSS code that could be used to change the size of the tab close button, or at least confirmation that the code I'm using above to achieve this is correct.

Ti ṣàtúnṣe nípa Slouch

Please do this to find out : SAFE MODE

In Firefox Safe mode these changes are effective:

  • all extensions are disabled (about:addons)
  • default theme is used (no persona)
  • userChrome.css and userContent.css are ignored (chrome folder)
  • default toolbar layout is used (file: localstore-safe.rdf)
  • Javascript JIT compilers are disabled (prefs: javascript.options.*jit)
  • hardware acceleration is disabled (Options > Advanced > General)
  • plugins are not affected
  • preferences are not affected

TEST

Thanks for your reply.

I ran FF 59 in Safe Mode.

What should I look for?

The tab close buttons are still the same size as in Normal mode (the X is too large).

See attached image.

Ti ṣàtúnṣe nípa Slouch

Ọ̀nà àbáyọ Tí a Yàn

The close X only consists of a SVG image, so you probably only need to remove the "*" to make your current CSS rule work. Note that bold won't work, you would have to create your own image.

Add code to the userChrome.css file below the default @namespace line.


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

.tab-close-button {
 width: 14px !important;
 height: 14px !important;
}

Ti ṣàtúnṣe nípa cor-el

Thank you, cor-el. That did indeed work!

Any idea why it worked with the "*" in the previous version, but not the latest one?

Regards.

You're welcome.

In Firefox 58 and older this was a toolbar button with an image.