Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

搜尋 Mozilla 技術支援網站

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

了解更多

how do i change the size of the flexible space in tool bar

  • 2 回覆
  • 19 有這個問題
  • 1 次檢視
  • 最近回覆由 fam551ny

more options

if the feature, "flexible space", to customize the tool bar is truly "flexible", then how do i change the size of it?

if the feature, "flexible space", to customize the tool bar is truly "flexible", then how do i change the size of it?

所有回覆 (2)

more options

Flexible means that it can push other elements (buttons) to the right or left if placed at the far right of a toolbar. So it doesn't have a specific width. Flexible space (1) doesn't work on a toolbar that has other element with a larger flex setting like the location bar (400) or the search bar (100). You would have to use code in userChrome.css to set a specific left or right margin to a button to get a special layout.


more options

still doesn't make sense to me. this is what i've done...first of all, i installed FF4 and didn't like it. but i did play around with some of the toolbar settings to try to get rid of the new "add-on bar" at the bottom. so i went back to FF3.6 and continued to play with the toolbar settings. i put the google search in the menu bar, but wanted to space it to the left, off the right margin. that's when i discovered the "flex space". you can indeed put the flex space in the menu bar to shift an item (button OR google search box) to the left or right. where i run into an issue is, in order to shift an item from, let's say the far right margin to the center, i would have to insert multiple flex spaces or i could also use the other "space". although, the "space" is two or three times as wide as the "flexible space". maybe the trouble that i'm having is the name"flexible space" which seems to imply that item has a flexible width. both "flexible space" and "space" do exactly the same thing, except "space" is wider than "flexible space". am i right? did i miss something? here is a screenshot to illustrate.