Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How do I change and set the width of the Address and Search box

  • 3 replies
  • 1 has this problem
  • 14 views
  • Last reply by TheOldFox

Currently, the Address box crowds out the Search. I really don't need the Address box as much as I need the Search box. I recall a method of setting them using a routine in the Chrome folder but I sure can't find it. Can you help?

Thank

Ed

Currently, the Address box crowds out the Search. I really don't need the Address box as much as I need the Search box. I recall a method of setting them using a routine in the Chrome folder but I sure can't find it. Can you help? Thank Ed

Chosen solution

Method 1:
Using the resizer on the interface. See - https://support.mozilla.org/en-US/kb/search-bar-easily-choose-your-search-engine#w_moving-or-removing-the-search-bar (second bullet item; done without entering customize mode. By default, Location and Search bars will occupy all available space on the Navigation toolbar in a 2 to 1 ratio, respectively.)

Method 2:
Add code to userChrome.css below the @namespace line.

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

See - http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files
Adjust the width to your needs, no space before px

  • urlbar-container {max-width: 400px !important;}
  • search-container {max-width: 200px !important;}
Read this answer in context 👍 0

All Replies (3)

Chosen Solution

Method 1:
Using the resizer on the interface. See - https://support.mozilla.org/en-US/kb/search-bar-easily-choose-your-search-engine#w_moving-or-removing-the-search-bar (second bullet item; done without entering customize mode. By default, Location and Search bars will occupy all available space on the Navigation toolbar in a 2 to 1 ratio, respectively.)

Method 2:
Add code to userChrome.css below the @namespace line.

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

See - http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files
Adjust the width to your needs, no space before px

  • urlbar-container {max-width: 400px !important;}
  • search-container {max-width: 200px !important;}

Modified by TheOldFox

You can place the mouse pointer between the location bar and the search bar to get a resizer that you can drag left to make the location bar smaller.

CH2OH5:

Using the resizer is what is shown in "Method 1" of my post above.