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

The paradox of authenticity

ChatGPT just presented me with the a word that describes what I have struggled with a lot throughout my personal enlightenment path. I'll give you my versions, respectively ChatGPT's version: --- My XP: I have often witnessed that the quest for freedom from shame and social punishment or judgment actually comes with extra social judgment and punishment, because trying to not care about what people think, so you do just your stuff, and very often actually that is interpreted as showing off. I hate it, and most people do it, especially whenever I feel free and by doing so making it more difficult to feel free (around them or in the future). Even more, in the past I held off from doing stuff that could be seen as showing off, but sometimes those exact things are pleasant to do for yourself and not to show off and people can't make the difference or forget to put their biases aside or forget the benefit of the doubt. --- ChatGPT: What you’re describing is a very common and s...

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...

Let it (not) be

For 5 months I wished to write a resistance version of " Let it be " from The Beatles , because every time I sing it, I feel there is something wrong with it *. First 5 months was a disaster! "The Doors" and "Curt Cobain" kept making me rape Mother Mary, and although that's strong language to start a resistance, it sounded a bit too wrong..This and other dead roads kept it to only 3 words all that time! :-) Today: All words came at once! YES! Chords are like the normal version, but I advice one change in vocals. See bottom. I hope you enjoy this version of "Let it be"! Let it (not just) be! When I find myself in times of trouble, Mother Poison comes to me, urging me to drea-eam and let it be. And in my hour of wakings, she is standing right in front of me, shrieking words of authority: Let it be! Let us sleep, let us sleep, let us sheep, let us sheep, buying things of promise: Let it be. And we're the broken harted peo...