Цей вебсайт матиме обмежену функціональність, доки ми проводимо його обслуговування для поліпшення роботи. Якщо прочитана стаття не розв'язала вашу проблему і ви хочете поставити питання, наша спільнота підтримки з радістю допоможе вам на @FirefoxSupport у Twitter та /r/firefox на Reddit.

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. 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