Този сайт ще има ограничена функционалност, докато се извършва тече неговата поддръжка. Ако дадена статия не може реши проблема ви и искате да зададете въпрос, нашата общност е готова да ви помогне на @firefox в Twitter и /r/firefox в Reddit.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

How can I reduce idiotically big line spacing in bookmark sidebar?

  • 4 отговора
  • 1 има този проблем
  • 2 изгледи
  • Последен отговор от Barubiito

more options

Could you please explain in detail, how to use UserChrome.css (what to do), if you want to reduce line spacings?

Could you please explain in detail, how to use UserChrome.css (what to do), if you want to reduce line spacings?

Всички отговори (4)

more options

You can try this code to the userChrome.css file below the default @namespace line. You can adjust the height and margin-top settings to suit your needs.


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

/* Line height for treechildren */
:-moz-any(#bookmarks-view, #historyTree, #editBMPanel_folderTree, #placesList, #placeContent)
treechildren::-moz-tree-row {
  margin-top: -1px !important;
  min-height: 14px !important;
  height: 14px !important;
}

You need to create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist.

  • use a plain text editor (Windows: Notepad; Mac: Textedit) to create a (new) userChrome.css file in the chrome folder (file name is case sensitive)
  • paste the code in the userChrome.css file in the editor window
  • make sure the userChrome.css file starts with the default @namespace line

If you are on Windows:

  • make sure you select "All files" and not "Text files" when you save the file via "Save file as" in the text editor as userChrome.css

Otherwise Windows may add a hidden .txt file extension and you end up with a not working userChrome.css.css.txt file.

  • make sure you do not have a double .css.css file extension (userChrome.css.css.css) if it is still not working
more options

I'm on a Mac. I had tried this already and it didn't work. I tried adding the code from above, but closed Firefox and reopened it and it still didn't work.

I think I have it in the right place. (username)/Library/Mozilla/chrome/userChrome.css. I don't understand why it's not working.

more options

@ Barubiito

You need to create the chrome folder in the Firefox profile folder and place userChrome.css in this folder.

  • ~/Library/Application Support/Firefox/Profiles/<profile>/

You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.

more options

OK, now it works, thanks! I see now that I skimmed the linked page about the Profile folder too quickly and fundamentally misunderstood it. I read "profile folder" as being my user profile on my Mac, and took "~/Library/Mozilla/" to be where I should put the Chrome folder.

Thanks again.