Page 1 of 1

size of quicksearch field: where?

Posted: Wed May 25, 2005 5:15 pm
by Nicola
Hi!

I am looking for the place where the size of the quicksearch field is defined.

I am running 0.8 and have the quicksearch included into the _lift_ sidebar.
Size of the input field is 13 - I need less. But I can't find, where this attribute
is set.

Thanks for helping me find this thing...

Greetings

Nicola

Re: size of quicksearch field: where?

Posted: Wed May 25, 2005 10:40 pm
by garvinhicking
You should be able to set the size of the quicksearch field via CSS. It has a unique ID which you can use to access it via CSS.

I think it even is used in the default Stylesheet...?

Regards,
Garvin

Re: size of quicksearch field: where?

Posted: Wed May 25, 2005 11:05 pm
by Guest
Hi!
garvinhicking wrote:You should be able to set the size of the quicksearch field via CSS. It has a unique ID which you can use to access it via CSS.
I think it even is used in the default Stylesheet...?
No, it isn't. I added a style:
.serendipityQuickSearchTermField {
width: 100px;
}

Still It's too big. I doubt that any style via CSS will work here, since the _size_ is fixed inside the field-tag:

*** snip ***
<input alt="Suche" type="text" id="serendipityQuickSearchTermField" name="serendipity[searchTerm]" size="13" />
*** snap ***

So the size-Attribute will always overwrite styles from the stylesheet - if I understand CSS and HTML right... So I'd love to kill this 'size="13" somewhere - where?

Greetings

Nicola

Re: size of quicksearch field: where?

Posted: Wed May 25, 2005 11:11 pm
by garvinhicking
Actually the CSS will override it. But when you really used ".serendipityQuickSearchTermField" that is wrong; you'll need to use "#serendipityQuickSearchTermField". Also try if "width: 100px !important" would work?

Regards,
Garvin