Close button missing from first tab in Firefox 3.5
I just upgraded to Firefox 3.5 and while it's still fairly familiar, there are a couple of things that have changed that aren't to my taste. The main one that bugs me is with the tab close button.
In Firefox 3.5, when you only have one tab open it doesn't have a close button. You can get this back by editing your
userChrome.css file. For Windows users:- Open Windows Explorer and navigate to:
%AppData%\Mozilla\Firefox\Profiles\<your profile>\chrome - Look for a file called
userChrome.css. If it doesn't exist, create a copy ofuserChrome-example.csscalleduserChrome.css. - Edit
userChrome.cssusing Wordpad (Start > Run... > write) - Add the following code to the bottom:
/*
* Firefox 3.5 doesn't show the close button on the last tab
* http://mozillalinks.org/wp/2009/07/disable-tab-tearing-and-six-other-firefox-3-5-tab-tweaks/
*/
.tabbrowser-tabs[closebuttons="alltabs"] > .tabbrowser-tab > .tab-close-button { display: -moz-box !important; }
.tabbrowser-tabs:not([closebuttons="noclose"]):not([closebuttons="closeatend"]) > .tabbrowser-tab[selected="true"] > .tab-close-button { display: -moz-box !important; } - Save your changes and restart Firefox.
The other thing that bugged me was that when I close the last tab, Firefox would exit. This is easily fixed by tweaking an about:config setting:
- Open Firefox and type
about:configin the address bar (and hit Enter). - If prompted with a warning, read and accept it.
- In the Filter box at the top, type in
closewindow - Double click the entry named
browser.tabs.closeWindowWithLastTabso that the value is set tofalse.
[ Found on Mozilla Links ]







3 Comments:
good one thanks!
But the CSS tip is not working for me. The close button appears for a moment and then it disappears.
I restarted Firefox.
Hi Gautam,
Not sure why it wouldn't work for you. Make sure you're updating the correct userChrome.css file and not the -example file. Also, maybe check it you've got more than one profile, and that you've copy/pasted everything correctly. I don't think line-wrapping is important but if you copy from the original site that might also help.
Good luck!
Post a Comment
<< Home