Advanced search  

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

Pages: [1]   Go Down

Author Topic: [solved]: Elemenating Space between search text input and search submit button  (Read 4486 times)

0 Members and 1 Guest are viewing this topic.

dumbo

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 112

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


« Last Edit: February 21, 2008, 05:20:54 pm by Joachim Müller »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Elemenating Space between search text input and search submit button
« Reply #1 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" />
Logged

dumbo

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 112
Re: Elemenating Space between search text input and search submit button
« Reply #2 on: February 21, 2008, 11:37:22 am »

I was expecting a br there  ;D 
thx it worked
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Elemenating Space between search text input and search submit button
« Reply #3 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".
Logged

dumbo

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 112

YUP thats solved and page look the way i wanted , thx for the explanation too :)
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 20 queries.