為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How to change space between folder icon and text on personal toolbar?

  • 4 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 cor-el

more options

I have a few folders on the personal toolbar with just a letter to indicate what they are, but on the theme I'm using, the letter is too far away from the folder it belongs to and partially falls under the next folder icon. I don't want to increase the spacing between all icons to show the full letter, as this decreases the amount of icons you can have on the toolbar. Instead I want to decrease the space between the folder and text belonging to it, so it's right next to it instead of 5 pixels away.

I've found various entries to change padding and margins in userChrome.css, but it's always for around the icon, I don't know where to look to close the space between the icon and its corresponding text.

Any help would be greatly appreciated, thanks.

I have a few folders on the personal toolbar with just a letter to indicate what they are, but on the theme I'm using, the letter is too far away from the folder it belongs to and partially falls under the next folder icon. I don't want to increase the spacing between all icons to show the full letter, as this decreases the amount of icons you can have on the toolbar. Instead I want to decrease the space between the folder and text belonging to it, so it's right next to it instead of 5 pixels away. I've found various entries to change padding and margins in userChrome.css, but it's always for around the icon, I don't know where to look to close the space between the icon and its corresponding text. Any help would be greatly appreciated, thanks.

被選擇的解決方法

Did you check the value of the margin-left of the text?

You can set negative margin values if necessary.

#PlacesToolbarItems .toolbarbutton-text { margin-left: -2px !important; }

Add .bookmark-item[container] if you only need this for folder items

#PlacesToolbarItems .bookmark-item[container] .toolbarbutton-text { margin-left: -2px !important; }
從原來的回覆中察看解決方案 👍 0

所有回覆 (4)

more options

選擇的解決方法

Did you check the value of the margin-left of the text?

You can set negative margin values if necessary.

#PlacesToolbarItems .toolbarbutton-text { margin-left: -2px !important; }

Add .bookmark-item[container] if you only need this for folder items

#PlacesToolbarItems .bookmark-item[container] .toolbarbutton-text { margin-left: -2px !important; }
more options

I just tried both codes in the userChrome.css file, and the result each time was that the icons themselves were moved closer together instead of staying where they were. The text still stayed partially under the next folder icon. So it seemed to affect the icons and did nothing for the text placement next to the icons.

more options

Actually, it does work. I just deleted everything else from my userChrome.css file and tried again with a clean css file with nothing but your first example in it, and it did work. Some existing lines probably were conflicting with the new code. So I'll go back and add in the others one by one to see that there's no conflict.

Many thanks for the help, appreciate it.

more options

You're welcome.

If you have style rules that work on all toolbars then you may need to override them for #PlacesToolbarItems