Join us and the lead editor of IRL, Mozilla's multi-award-winning podcast, for a behind-the-scenes look at the pod and to contribute your ideas for the next season, themed: "AI and ME." Mark your calendar and join our Community Call on Wednesday, Aug 7, 17:00–17:45 UTC. See you there!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

A css to reduce the "space" icon width of firefox by half

  • 4 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 aykaw

more options

I need a userstyle to reduce the "space" icon width of firefox by half, the space is too important in width for small icons.

I need a userstyle to reduce the "space" icon width of firefox by half, the space is too important in width for small icons.

被采纳的解决方案

Works here.

Did you verify that userChrome.css is a CSS file? Does other code in this file work?

定位到答案原位置 👍 0

所有回复 (4)

more options

See 'toolbar decorations' in this file:

chrome://global/skin/toolbar.css
toolbarspacer {
  width: 15px;
}


You can use code in userChrome.css to set a smaller width and add the "!important;" flag to override the default.


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

toolbarspacer { width: 6px !important; }

  • create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
  • use a plain text editor like Notepad 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 that the userChrome.css file starts with the default @namespace line
  • make sure that 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.txt file

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

Hi,

I have ff55 & your code doesn't work, the length size remains the same, even re-dragged to the toolbar..

由aykaw于修改

more options

选择的解决方案

Works here.

Did you verify that userChrome.css is a CSS file? Does other code in this file work?

more options

i use stylish addon