[solved]: Elemenating Space between search text input and search submit button [solved]: Elemenating Space between search text input and search submit button
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[solved]: Elemenating Space between search text input and search submit button

Started by dumbo, February 21, 2008, 02:48:11 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dumbo

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



Joachim Müller

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" />

dumbo


Joachim Müller

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".

dumbo

YUP thats solved and page look the way i wanted , thx for the explanation too :)