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&qu

The Four Ages of Man

Pilar, a new friend, has revived the ever lasting poem in me brain.  It remains there partly because of a disastrous trial of mine once, to improve my memory.   But it's a nice piece nevertheless. It's a poem that struck me as being simple, sooo true, yet ironic (or even sarcastic) in only 8 lines of text!!    Here it is:   The Four Ages of Man Yeats He with body waged a fight, But body won; it walks upright.   Then he struggled with the heart; Innocence and peace depart.   Then he struggled with the mind; His proud heart he left behind.   Now his wars on God begin; At stroke of midnight God shall win. Amazing is that I could as well project it on the life of á man as well as on the life of all mankind (through evolution and with the apocalypse at the end). Euh, no ... I do not believe in God, nor do I disbeleive It/Him/Her!!  I am just happy without needing to decide on it.

Basics of equality

I have had this idea for as long as I can remember, but only lately it has taken some form in thoughts & words. Though it needs a lot of fixing -aren't words so limited ?- Now I am putting it here to release it so it won't occupy my thoughts so much. Also, maybe someone can learn from this, though I doubt it isn't said already somewhere else and I doubt my blog is read by many people. (Pride is my everlasting burdon too.) Basics of equality : Actually, it's so easy, but probably also so "against one's individuality and pride" that it is so difficult to learn and live by it, if not completely subjectivily rejected by one's mind at first sight!! So, please open your mind before reading on. You see, what makes a person ? Well, it's simple actually, man equals DNA (body, looks, behavior, ..) + life experience (education, accidents, confrontations, luck!, .. ; though isn't luck , or rather: chance, what life experience is the result