X
Tap here to go to the mobile version of the site.

Support Forum

Set about:config Search Box to ltr

Posted

I'm using Fx Hebrew (rtl). How Do I set about:config search box default direction to ltr?

.textbox-input-box { direction:ltr !important; } doesn't work.

Thank you.

I'm using Fx Hebrew (rtl). How Do I set about:config search box default direction to ltr? .textbox-input-box { direction:ltr !important; } doesn't work. Thank you.

Chosen solution

This code in userContent.css also works for me on the about:config and about:addons pages (not on about:home).

.textbox-input { direction: rtl !important; }
Read this answer in context 2

Additional System Details

Installed Plug-ins

  • Shockwave Flash 11.3 r300
  • DRM Netscape Network Object
  • DRM Store Netscape Plugin
  • Npdsplay dll

Application

  • User Agent: Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20100101 Firefox/14.0.1

More Information

cor-el
  • Top 10 Contributor
  • Moderator
16721 solutions 151175 answers

You can switch the bidi direction of any input field or text area with the Ctrl+Shift+X keyboard shortcut.

You can switch the bidi direction of any input field or text area with the Ctrl+Shift+X keyboard shortcut.

Question owner

Thank you cor-el.

Is it possible to set the DEFAULT value to ltr? textbox-input-box { direction:ltr !important; } does that in the Search Bar.

Thank you cor-el. Is it possible to set the DEFAULT value to ltr? textbox-input-box { direction:ltr !important; } does that in the Search Bar.
cor-el
  • Top 10 Contributor
  • Moderator
16721 solutions 151175 answers

Helpful Reply

This code in the userContent.css file works for me with a ltr locale (en-US)

The customization files userChrome.css (interface) and userContent.css (websites) are located in the chrome folder in the user profile folder.

You can use this button to go to the Firefox profile folder:

  • Help > Troubleshooting Information > Profile Directory: Open Containing Folder

/* about:config */
@-moz-document url-prefix(about:config) {
 #textbox { direction: rtl !important; }
}
This code in the userContent.css file works for me with a ltr locale (en-US) *http://kb.mozillazine.org/userContent.css The customization files userChrome.css (interface) and userContent.css (websites) are located in the <u>chrome</u> folder in the user profile folder. *http://kb.mozillazine.org/Editing_configuration You can use this button to go to the Firefox profile folder: *Help > Troubleshooting Information > Profile Directory: Open Containing Folder ---- <pre><nowiki>/* about:config */ @-moz-document url-prefix(about:config) { #textbox { direction: rtl !important; } }</nowiki></pre>
cor-el
  • Top 10 Contributor
  • Moderator
16721 solutions 151175 answers

Chosen Solution

This code in userContent.css also works for me on the about:config and about:addons pages (not on about:home).

.textbox-input { direction: rtl !important; }
This code in userContent.css also works for me on the about:config and about:addons pages (not on about:home). <pre><nowiki>.textbox-input { direction: rtl !important; }</nowiki></pre>

Question owner

Hi cor-el,

Thank you so much. I’m really impressed!

When using .textbox-input-box { direction: ltr !important; }, the entire layout is changed (the magnifying glass is moved too). I could use .textbox-input-box { text-align: left !important; }, but I’d be glad if you have a better solution.

May I request your help with three more issues? I hope it’s not too much of a trouble.

1) The default TEXT direction of the Location Bar is also rtl. Any idea how to change that (only the text, not the layout)?

2) Could you please have another look at this post?

https://support.mozilla.org/he/questions/927938

It might have to do with the answer you’ve given me here.

3) I’ve written a small extension for my personal usage. I’d like a toolbar button’s tooltip to consist of 2 lines, and some parts of the its text to be bold. Is it possible to do that in a dtd file, or the only way is to use properties and/or js files?


Thanks again. I appreciate your help.

Hi cor-el, Thank you so much. I’m really impressed! When using .textbox-input-box { direction: ltr !important; }, the entire layout is changed (the magnifying glass is moved too). I could use .textbox-input-box { text-align: left !important; }, but I’d be glad if you have a better solution. *** May I request your help with three more issues? I hope it’s not too much of a trouble. 1) The default TEXT direction of the Location Bar is also rtl. Any idea how to change that (only the text, not the layout)? 2) Could you please have another look at this post? https://support.mozilla.org/he/questions/927938 It might have to do with the answer you’ve given me here. 3) I’ve written a small extension for my personal usage. I’d like a toolbar button’s tooltip to consist of 2 lines, and some parts of the its text to be bold. Is it possible to do that in a dtd file, or the only way is to use properties and/or js files? Thanks again. I appreciate your help.
cor-el
  • Top 10 Contributor
  • Moderator
16721 solutions 151175 answers

For input fields in the user interface you can add code to the userChrome.css file below the default @namespace line.

The customization files userChrome.css (interface) and userContent.css (websites) are located in the chrome folder in the user profile folder.


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

*|*.textbox-input { direction: rtl !important; }
For input fields in the user interface you can add code to the <u>userChrome.css</u> file below the default @namespace line. *http://kb.mozillazine.org/userChrome.css The customization files userChrome.css (interface) and userContent.css (websites) are located in the chrome folder in the user profile folder. *http://kb.mozillazine.org/Editing_configuration ---- <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */ *|*.textbox-input { direction: rtl !important; } </nowiki></pre>

Question owner

Thank you. You've been very kind.

Thank you. You've been very kind.
cor-el
  • Top 10 Contributor
  • Moderator
16721 solutions 151175 answers

You're welcome

You're welcome