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

My Journey Into Modern Video Compression

And Why I Ended Up Using Shutter Encoder,  AV1 and opus After testing many tools to compress my album/personal videos from the last years, I use AV1 + Opus + MKV with Shutter Encoder as my daily workflow. It keeps things practical while giving modern compression, metadata preservation, filter preview, and predictable results. AV1, Constant Quality, VBR, and Variable Framerate (VFR) AV1 is already supported by most modern devices and will remain standard for a long time. Its main advantage: AV1 lets you decide how much quality to preserve while greatly reducing file size, so the loss becomes dependent on your preference of videos. AV1 also supports variable bitrate (VBR) , where the encoder automatically uses fewer bits on simple scenes and more on complex ones. Combined with constant-quality (CQ) mode , this lets you target a consistent visual quality across the file without worrying about a fixed bitrate. It works very well with variable framerate (VFR) , where f...

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?

Can we stop fueling narcissists?

Hurt people hurt people By hurting narcissist one is hurting other innocent people indirectly (and most of the hurt the narcissist did is already boosted from other people taking revenge on them). Narcissists are the kind of people that turn hurt into hurting others and it doesn't have to be the people who hurt them, anybody around is good enough. Doesn't mean one's hurt from them is worth nothing and it doesn't mean we have to let them do it. What it means, is that it is fucking hard to resolve this problem, even going in the right direction is full of kindle and oil. Narcissists are one of the most difficult people to heal or to let them heal themselves... It's ironic really, most sociopaths KNOW they are hurting people but they don't care, while most narcissists don't realize it and they would care if they knew but they think they are perfect -in their protective superficial mind, or at least better than other people- and never hurt people or they think i...