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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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 :)