Change the style of tab markers

From MozillaZine Knowledge Base
Revision as of 14:53, 15 November 2004 by Mozcerize (talk | contribs)
Jump to navigationJump to search

Some themes change the style of tab markers on the tab bar. They usually use CSS to do it, and you can add the same CSS to your user configuration files to achieve the same effect ‘permanently’, that is, irrespective of (and overriding) your chosen theme.

For example, adding the following code to userChrome.css will cause the title text of unread tabs opened in the background to appear in italics until that tab is read for the first time.

/* Italicize the title of unread tabs */
#content tab {
  font-style: italic !important;
}

/* Normalize the title of selected tab */
#content tab[selected="true"] {
  font-style: normal !important;
}

/* Normalize the title of read unselected tabs */
#content tab[selected="false"] {
  font-style: normal !important;
}