Results 1 to 5 of 5
  1. #1
    ABW Ambassador kse's Avatar
    Join Date
    November 29th, 2005
    Posts
    2,511
    Question Help with Coding Search Box
    Every time I create a seach box it creates a blank space below the search box. Does anyone know how to stop this?? I want to search the current page for the search string.

    I am using the following code for a search Box (more code is in the header):

    <form name="form1" onSubmit="search(document.form1, frametosearch); return false">
    <font face="Arial" style="font-size: 12px" color="#FFFFFF"><b>&nbsp;Page Search:</b></font><font color="#FFFFFF">
    <input type="text" name="findthis" size="20" title="Press 'ALT s' after clicking submit to repeatedly search page">
    <input TYPE="submit" VALUE="Go" align="middle" border="0" width="17" height="19" ACCESSKEY="s" name="I1">
    <font size="2">&quot;Alt s&quot; to find next</font></font>
    </form>

    Thank you....

  2. #2
    ABW Ambassador Nature Boy's Avatar
    Join Date
    January 18th, 2005
    Location
    Tennessee
    Posts
    1,423
    If you talking about just the extra space under the form itself, you can get rid of that using CSS. If you have a .css file that is being called from your files, add this too it.

    FORM {margin: 0cm 0cm 0cm 0cm}

    Hope that helps.
    Scott
    If you can't dazzle them with brilliance, then baffle them with bulls#!t
    Don't tell me that you'll do it... SHOW ME.
    Just because everyone else is drinking it is no reason for me to drink the KOOL-AID.

  3. #3
    ABW Ambassador kse's Avatar
    Join Date
    November 29th, 2005
    Posts
    2,511
    It worked I just added the code you suggested in the Header.

    <style>
    form { margin: 0 }
    </style>

    Thank you Scott......

  4. #4
    Full Member
    Join Date
    January 18th, 2005
    Location
    Moved, Asia
    Posts
    400
    As Nature Boy said.
    Or, add style after form e.g. <form style="margin: 0px;" name= ...
    IRS
    Don't ask why the ball doesn't come.

  5. #5
    ABW Ambassador kse's Avatar
    Join Date
    November 29th, 2005
    Posts
    2,511
    Quote Originally Posted by IRS
    As Nature Boy said.
    Or, add style after form e.g. <form style="margin: 0px;" name= ...
    Thank you.........

  6. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. MSN Search Box - Search Your Own Site Box
    By Trust in forum Search Engine Optimization
    Replies: 9
    Last Post: April 16th, 2005, 07:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •