Change the style of tab markers: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
No edit summary
 
mNo edit summary
Line 3: Line 3:
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.
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 {
  #content tab {
   font-style: italic !important;
   font-style: italic !important;
  }
  }
   
   
/* Normalize the title of selected tab */
  #content tab[selected="true"] {
  #content tab[selected="true"] {
   font-style: normal !important;
   font-style: normal !important;
  }
  }
   
   
/* Normalize the title of read unselected tabs */
  #content tab[selected="false"] {
  #content tab[selected="false"] {
   font-style: normal !important;
   font-style: normal !important;
  }
  }

Revision as of 14:53, 15 November 2004

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;
}