forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: dumbo on February 21, 2008, 02:48:11 am

Title: [solved]: Elemenating Space between search text input and search submit button
Post by: dumbo on February 21, 2008, 02:48:11 am
I tried to edit the Search.php , but no result was seen , please help me eliminate the space between the input text and submit button
http://liveglamour.com/search.php


Title: Re: Elemenating Space between search text input and search submit button
Post by: Joachim Müller on February 21, 2008, 07:33:00 am
Edit search.php, find
Code: [Select]
                <input type="text" style="width: 80%" name="search" maxlength="255" value="" class="textinput" />
                <input type="submit" value="{$lang_search_php['submit_search']}" class="button" />
and replace with
Code: [Select]
                <input type="text" style="width: 80%" name="search" maxlength="255" value="" class="textinput" /><input type="submit" value="{$lang_search_php['submit_search']}" class="button" />
Title: Re: Elemenating Space between search text input and search submit button
Post by: dumbo on February 21, 2008, 11:37:22 am
I was expecting a br there  ;D 
thx it worked
Title: Re: Elemenating Space between search text input and search submit button
Post by: Joachim Müller on February 21, 2008, 05:20:39 pm
A <br />-tag would mean a line-break, so I would not have expected a new line.
A space char in a line (and that's what is in the code the way it is by default) is being interpreted as space in HTML as well. The only difference is that several space chars in a row don't result in several spaces in the browser's rendering, but only in one space. That's why it's safe to use line indentation for making the code more readable, with the drawback that the new lines in the code always mean one space in the rendered output. That's basic HTML.
Anyway, marking as "solved".
Title: Re: [solved]: Elemenating Space between search text input and search submit butt
Post by: dumbo on February 21, 2008, 06:51:40 pm
YUP thats solved and page look the way i wanted , thx for the explanation too :)