Firefox - How to reduce spacing between icons on the Navigation Bar

3

I am using Firefox 24.0 on Windows 8.1 64-bit (RTM from MSDN) and have a few extensions installed which add buttons to the navigation bar.

For some reason there is a large amount of wasted space between the icons:

enter image description here

In some cases this is even worse when the icon has a drop down:

enter image description here

Is there any way to reduce this spacing?

Shevek

Posted 2013-10-14T21:00:23.553

Reputation: 15 408

Answers

4

I would recommend you to edit the userChrome.css-File. Yes, the name is userChrome.css.

You can edit the padding between these icons in this css-file.

For example:

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

#nav-bar toolbarbutton { 
  padding-left: 0px !important;  
  padding-right: 0px !important;
  margin-left: 0px !important; 
  margin-right: 0px !important;  
}

Here you reduce the padding between the icons to 0px. So there is less space between the icons.

Ways to do it

  • I would recommend you to use ChromeEdit to easily edit the appearance.
  • You can also edit the configuration-files directly. Have a look at this website. On this website, there are many ways shown how to edit the configuration/appearance.

Christian

Posted 2013-10-14T21:00:23.553

Reputation: 6 571

will this file be overwritten when Firefox is updated? Or is it a user-specific file? (I guess the answer is in the filename! But I just want to be sure) – Shevek – 2013-10-14T23:56:15.120

It is userspecific. – Christian – 2013-10-15T09:07:16.243

I also set margins to 0 as well – Shevek – 2013-10-15T10:28:33.833