Any way to shorten the searchfield?

Mar 22, 2009 at 12:46 AM

I tryed it over the css-file in the active theme but it doesn't work. Then I changed a codeline in SearchBox.cs into:

sb.AppendFormat("<input type=\"text\" width=\"10em\" value=\"{0}\" id=\"searchfield\" onkeypress=\"if(event.keyCode==13) return Search('{1}')\" onfocus=\"SearchClear('{2}')\" onblur=\"SearchClear('{2}')\" />", text, Utils.RelativeWebRoot, text);

I also tryed it with size=\"20\" instead width=\"10em\", but nothing is working. Do you have any idea?

thx for help.

Mar 22, 2009 at 2:06 AM

sry, for it I found it now in the CSS-file:

#searchbox #searchfield {
width: 130px;