Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

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

Learn More

Firefox: Move Find bar to the top

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

more options

I recently upgraded my system and, after installing and using Firefox, I notice the Find (Ctrl + F) bar is now at the bottom of the window. Whereas, it was previously at the top (which is more like every other application I use).

After some head scratching and web searches, I remembered I had to fix this issue previously (after a Firefox upgrade some time back). The method to fix it then could be found here: [there a way to put the Find Bar at top] That link is of course to the same question asked 4 years back.

I have once again followed the procedure there explained per: • Access my Firefox profile folder. In my case:

  C:\Users\<Me>\AppData\Roaming\Mozilla\Firefox\Profiles\5ym42ewi.default

• Create folder therein called ‘chrome’ • In that folder create a file called ‘userChrome.css’ • In that file add text:

  .browserContainer > findbar {
    -moz-box-ordinal-group: 0;
  }

However, after doing that (and restarting Firefox), the Find bar stubbornly remains glued to the bottom of the window.

Can anyone tell me how to solve this issue?

As a separate note to the developers: This issue is long-standing, that a web search reveals is still relevant to many users. Any chance of considering making it a standard option?

I recently upgraded my system and, after installing and using Firefox, I notice the Find (Ctrl + F) bar is now at the bottom of the window. Whereas, it was previously at the top (which is more like every other application I use). After some head scratching and web searches, I remembered I had to fix this issue previously (after a Firefox upgrade some time back). The method to fix it then could be found here: [[https://support.mozilla.org/en-US/questions/1197650|Is there a way to put the Find Bar at top]] That link is of course to the same question asked 4 years back. I have once again followed the procedure there explained per: • Access my Firefox profile folder. In my case: C:\Users\<Me>\AppData\Roaming\Mozilla\Firefox\Profiles\5ym42ewi.default • Create folder therein called ‘chrome’ • In that folder create a file called ‘userChrome.css’ • In that file add text: .browserContainer > findbar { -moz-box-ordinal-group: 0; } However, after doing that (and restarting Firefox), the Find bar stubbornly remains glued to the bottom of the window. Can anyone tell me how to solve this issue? As a separate note to the developers: This issue is long-standing, that a web search reveals is still relevant to many users. Any chance of considering making it a standard option?

被采纳的解决方案

In Firefox 69 and later you need to set this pref to true on the about:config page to enable userChrome.css and userContent.css in the chrome folder.


I use code to place that statuspanel at the top and I need to add the !important flag to make this work. EDIT: updated for 113+ where -moz-box-ordinal-group:x needs to be replaced with order:x-1.

.browserContainer > findbar {
 -moz-box-ordinal-group:0 !important; /*  for 112 and older */
 order: -1 !important; /* for 113 and newer */
 border-top: none !important;
 border-bottom: 1px solid ThreeDShadow !important;
} 


/* STATUS PANEL - TOP */
.browserContainer > :not(#statuspanel) {
 -moz-box-ordinal-group:2 !important; /*  for 112 and older */
 order: 1 !important; /* for 113 and newer */
}

#statuspanel {
 margin-top:-20px !important;
 z-index:2147483647 !important;
}

/* STATUS PANEL - width */
#statuspanel {
 max-width:90% !important;
 pointer-events:none !important;
}

/* STATUS PANEL - background */
#statuspanel-label {
 background:#ff9 !important;
 color:black !important;
 font-family:"DejaVu Sans Mono";
 border: gray dotted 1px !important;
}

定位到答案原位置 👍 1

所有回复 (5)

more options

Note: After posting I note the embedded link doesn't work (and I couldn't find any option to edit the post). The links should read: Is there a way to put the Find Bar at top

more options

选择的解决方案

In Firefox 69 and later you need to set this pref to true on the about:config page to enable userChrome.css and userContent.css in the chrome folder.


I use code to place that statuspanel at the top and I need to add the !important flag to make this work. EDIT: updated for 113+ where -moz-box-ordinal-group:x needs to be replaced with order:x-1.

.browserContainer > findbar {
 -moz-box-ordinal-group:0 !important; /*  for 112 and older */
 order: -1 !important; /* for 113 and newer */
 border-top: none !important;
 border-bottom: 1px solid ThreeDShadow !important;
} 


/* STATUS PANEL - TOP */
.browserContainer > :not(#statuspanel) {
 -moz-box-ordinal-group:2 !important; /*  for 112 and older */
 order: 1 !important; /* for 113 and newer */
}

#statuspanel {
 margin-top:-20px !important;
 z-index:2147483647 !important;
}

/* STATUS PANEL - width */
#statuspanel {
 max-width:90% !important;
 pointer-events:none !important;
}

/* STATUS PANEL - background */
#statuspanel-label {
 background:#ff9 !important;
 color:black !important;
 font-family:"DejaVu Sans Mono";
 border: gray dotted 1px !important;
}

由cor-el于修改

more options

Thanks for all that cor-el

Sadly, I did as suggested and the Find Bar remains stubbornly glued to the bottom. For the sake clarity: • I copied all your code (verbatim) into userChrome.css • There is nothing else in that file • userChrome.css is in a 'chrome' folder within ...AppData\Roaming\Mozilla\Firefox\Profiles\5ym42ewi.default • I closed and restarted Firefox after the changes • My Firefox is version 98.0.2 (64-bit) • My Windows is Windows Pro version 10.0.19043

Obviously it's working for you, so there is something different between our systems. If you have any ideas of what, I would certainly appreciate hearing them.

more options

Did you set the about:config preference to true? The various steps are outlined in the link below. You will have to remove the blank space in the link.

https://www.userchrome. org/how-create-userchrome-css.html

more options

Thank you again. Turns out I was using the wrong ‘default’ folder. For whatever reason I have two of them? The method in your post above to find out which is the ‘correct’ one was the final part of solution.

So… again… thank you very much! I’ll squirrel this information away for the next time (I need to go through this cycle).