site Search:


 
    All Forums Hot Topics Gallery






how-to block ads


 
Search Topic:
Share Topic
Posting?
Post a:
Post a:
Links: ·Test Media Player Plugins ·Reducing memory usage - Firefox ·Tweaking for Fun/Speed Firefox Fx v4/5 Series
AuthorAll Replies


Sanjay

@ntl.com

approval from:
amazingm See Profile

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


amazingm
Premium
join:2001-07-16
USA

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.


mod_wastrel
Gone fishin'

join:2008-03-28

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.



amazingm
Premium
join:2001-07-16
USA

I decided to try again after seeing your post and sure enough it does work.

Thanks for the tip Sanjay.


Monday, 13-Feb 09:14:27 Terms of Use & Privacy | feedback | contact | Hosting by nac.net - DSL,Hosting & Co-lo
over 12.5 years online! © 1999-2012 dslreports.com.
Most commented news this week
Hot Topics