size of quicksearch field: where?

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
Nicola
Regular
Posts: 48
Joined: Wed May 25, 2005 5:08 pm
Contact:

size of quicksearch field: where?

Post by Nicola » Wed May 25, 2005 5:15 pm

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

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: size of quicksearch field: where?

Post by garvinhicking » Wed May 25, 2005 10:40 pm

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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

Guest

Re: size of quicksearch field: where?

Post by Guest » Wed May 25, 2005 11:05 pm

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

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: size of quicksearch field: where?

Post by garvinhicking » Wed May 25, 2005 11:11 pm

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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

Post Reply