Skip to main content

Firefox 4 smaller tabs (concerning height)

I've searched long enough for this to put it here for other searchers (especially concerning spacing or margins). If you want the height of your tabs to be a bit smaller (including text of course), you can do that by editing your "C:\Users\[YourUSername]\AppData\Local\Mozilla\Firefox\Profiles\[Your profile]\chrome\userChrome.css".  Create one from "userChrome-example.css" if it doesn't exist.
Here is the code you should add after "@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul")":
.tabbrowser-tabs {
    height: 18px !important;
}
.tabbrowser-tabs .tab-text {
    font-size: 80%;
}
.tabbrowser-tab
{
    margin-top:0 !important;
}
.tabbrowser-tabs tab label
{
    margin-top:-2px !important;
    height: 16px !important;
}




Comments

Michael said…
I'm trying to resize the tab bar but not the tabs themselves; there's a gap above the tabs of just a pixel or two that I want to get rid of, so I want to change the height of the tab bar to equal the height of the tabs.

.tabbrowser-tab {
margin-top:0 !important;
}


made no difference at all. I've been searching for a while now with no luck. Any ideas?

Thanks in advance!
Ruby said…
Not really or I forgot. :-)

It all comes down to finding the right class and style (margin, padding, line-height, ..).
Maybe google around a bit for all the existing css classes for tabs and find the right one by settings something as 100px or background-color:#f00. Once found, you can set what you need.

Here are some topics with classes:
http://www.mozilla.org/unix/customizing.html
http://forums.mozillazine.org/viewtopic.php?t=208761
http://www.mvps.org/dmcritchie/firefox/tabs.htm

Popular posts from this blog

Doctors!!!

Another one of those problems out here that I have found more and more compelling as well as frustrating in my life as well as for the whole world is that doctors of today seem not really concerned with their patients anymore, when practicing their profession rather focusing on symptom treatment and "pills" (so to speak) than the causes and real health or well being of the patient. Also that they are weigh too much focused on the money they " deserve " and the competition ( do I smell another form of my favorite word conformism in the latter? ). I have had a lot of discussions with some medicine students (not coincidently), and though I thought a lot of them wouldn't come out for it, I was surprised to learn that a lot of them dó admit that (the promise of) money is a big part in their decision to study medicines!! Of course it's not merely doctors, but the whole health care institution that is becoming more and more of a profiting "machine...

New update on my vegan focused nutrition site: Auto picked crowd corrected pictures, vegan ethical host and more..

Here we are with a new update again. --> https://v-nut.e-motiv.net First of all, we are now hosted on a vegan ethical host! Check it out: https://ethicalinternet.co.uk/ Our new algorithm now automatically picks pictures from wikimedia commons. They then can be corrrected with crowd voting. YOU can make the site better now!    Finally the requested recipe fields: persons, instructions, image£ And some minor improvements (https works again) Hey, which other scientific nutritional site gives you all these features?

Trash ..some people will never change. Refocusing activism and politics

 This is why I think some types of activism and politics are wrong.  And let's ignore politics today not being in the interest of the people anymore. This was left by a couple spending late hours at the coast having some good times. Too lazy to get out of the car, take one step and throw it in the trash. Now, I find these spots all over Spain, national Parc, kilometers away from any houses or not and I mean EVERYWHERE! These people will always exist, especially among the young people that haven't become responsible yet..if they ever would.. Politics and activism often try to inform people, try to initiate behavioural change. But I don't believe in that (anymore for a holistic change in this specific matter). There will always be some assholes or young ones that haven't grown up yet. What we need to focus on is not allowing companies to make non-bio-degradable packaging anymore, even less bio degreeable ones. O yeah,as for the argument 'Someone will clean it up anywa...