
approval from: amazingm 
| reply to norky
Re: [FireFox] Close tab button in 3.5 RC2 Add the following code to userChrome.css
Important: Also go into about:config and change browser.tabs.closeWindowWithLastTab to false.
/* Add tab-close-button to last tab*/ .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; } |
|
 | said by Sanjay :
Add the following code to userChrome.css
Important: Also go into about:config and change browser.tabs.closeWindowWithLastTab to false.
/* Add tab-close-button to last tab*/ .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; } Thanks for the tip. Now, at least I am able to close the last tab with ctrl-w. However, after changing the setting in about:config to false and creating a userChrome.css file in my profile with the text you included, the last tab still does not have a close button. |
|
 2 edits | Worked for me (only after I cleaned up the formatting to ensure line-endings didn't interfere with white-space et al**). Also works fine in Stylish.
**Oddly, I repeated the process just now: copy & paste as is (no re-formatting) and it still works... but it didn't work the first time I did it--don't know why. |
|
 | I decided to try again after seeing your post and sure enough it does work.
Thanks for the tip Sanjay. |
|
|
|