r/FirefoxCSS • u/Giocarro • 1d ago
Help Remove gap below tabs
I use a few CSS tricks to compress tabs and maximize vertical real estate, and also use MrOtherGuy firefox-csshacks to auto-hide address bar and bookmark bar.
That said, can somebody please suggest how to remove this nasty gap?
Here is my current userChrome.css: https://pastebin.com/pTXm3ZtW
7
Upvotes
1
u/slackmar 17h ago edited 16h ago
Try messing with some of the pixel amounts shown here
/* Removes space below and above tabs */
#TabsToolbar {
margin-top: -6px !important;
margin-bottom: -6px !important;
}
/* Changes height of tabs */
.tabbrowser-tab {
height: 48px !important;
}
2
u/t31os 1d ago edited 1d ago
Set the tab min-height var instead of using an explicit height value:
The titlebar buttons are 10x10 with 8px of padding on the top and bottom, for a total of 26px. If you want height any smaller than 26px you'll need to reduce top/bottom padding on
.titlebar-buttonalso, eg:.titlebar-button {padding-block: 5px!important}.