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
-
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
-
Edit search.php, find
<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 <input type="text" style="width: 80%" name="search" maxlength="255" value="" class="textinput" /><input type="submit" value="{$lang_search_php['submit_search']}" class="button" />
-
I was expecting a br there ;D
thx it worked
-
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".
-
YUP thats solved and page look the way i wanted , thx for the explanation too :)