MozillaZine

How Do I Change the Text Color in an Inactive Tab?

User Help for Mozilla Firefox
Wiggam72
 
Posts: 380
Joined: July 30th, 2013, 9:05 am

Post Posted May 11th, 2019, 6:59 am

I would like to change the text color of an inactive tab. Per a new thread that was started, I have the .css code for just the tab that's inactive.

Right now I'm using the following, but will change it when I can change the font color along with it as I do for the active tab.

/* Firefox userChrome.css */

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

.tabbrowser-tab:not([selected]) {
background-color: #7373ff !important;
}

the-edmeister

User avatar
 
Posts: 32200
Joined: February 25th, 2003, 12:51 am
Location: Chicago, IL, USA

Post Posted May 11th, 2019, 8:08 am

This reason that you started a new thread rather than use your existing thread on this topic?
viewtopic.php?f=38&t=3049023


.
A mind is a terrible thing to waste. Mine has wandered off and I'm out looking for it.

morat
 
Posts: 3323
Joined: February 3rd, 2009, 6:29 pm

Post Posted May 11th, 2019, 8:21 am

Try this:

Code: Select all
/* Firefox userChrome.css */

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

.tabbrowser-tab:not([selected]) {
  color: red !important;
  background-color: pink !important;
}

http://kb.mozillazine.org/UserChrome.css

Wiggam72
 
Posts: 380
Joined: July 30th, 2013, 9:05 am

Post Posted May 11th, 2019, 10:01 am

the-edmeister wrote:This reason that you started a new thread rather than use your existing thread on this topic?
viewtopic.php?f=38&t=3049023


.


I assume you missed it. They are two different topics. The other one is for the active tab for the text, and this one is for the inactive tab for the text. The one that a different OP made today is for just the inactive tab. It is not for the text. The code given here by morat covers both the text and the tab which is what I need and hence the reason I worded my OP the way I did.
Last edited by Wiggam72 on May 11th, 2019, 10:16 am, edited 1 time in total.

Wiggam72
 
Posts: 380
Joined: July 30th, 2013, 9:05 am

Post Posted May 11th, 2019, 10:12 am

Thanks morat! =D> It works! I'll tinker around and figure out what color combos I'm going to use.

Return to Firefox Support


Who is online

Users browsing this forum: Bing [Bot], Google Adsense [Bot] and 10 guests