検索バーの幅を変える
Firefoxのツールバーにある検索バーの幅を変更したい場合、userChrome.cssに以下を加える。幅は200pxの値を任意に変更できる。Firefox Helpの例から方法が変更されてるのでメモ。
/* Make the Search box flex wider */ .searchbar-textbox { width: 200px !important; }
2004-10-24追記
mozillaZine 日本語版 - Firefox フォーラムにて、同様の話題があったのでメモ。
/* Make the Search box flex wider */ #search-container { -moz-box-flex: 400 !important; } #searchbar { -moz-box-flex: 400 !important; }検索バーの入るコンテナの長さと検索バーの長さが別で指定されるようになったようです。
検索バーに割り振らるidや定義されたCSSは、DOM インスペクタでブラウザのウィンドウを調査すると、以下の辺りで確認できた。
#document > window > toolbox > toolbar > toolbaritem > serchbar