Results 1 to 5 of 5

Thread: Blank space under form in table cell

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2000
    Location
    Sussex, England
    Posts
    45
    Any one got any ideas why i'm getting a blank space under my form (a simple text box and submit button), there is no <BR> or anything ... it's driving me nuts ! Here is a code sinppet :

    <td bgcolor="#0052BD" width="100%" height="36" colspan="2" valign="middle">
    <form method="get" action="http://search.atomz.com/search/">
    <p>
    <font face="Arial, Helvetica, sans-serif" size="1">
    <b><font color="#FFFFFF">&nbsp;Search for:</font></b>&nbsp; <input size=30 name="sp-q" style="font-family: Arial; font-size: 8pt">&nbsp;
    <input type=submit value="Search" style="font-family: Arial; font-size: 8pt; font-weight: bold"></font><input type=hidden name="sp-a" value="">
    </p>
    <input type=hidden name="sp-p" value="any"
    <input type=hidden name="sp-w-control" value=1>
    <input type=hidden name="sp-w" value="alike">
    <input type=hidden name="sp-m" value=1><font face="Arial, Helvetica, sans-serif" size="1"><input type=hidden name="sp-k" value=""><input type=hidden name="sp-c" value=10></font>
    </form>

    </td>

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Don't specify height on your TD. It will size itself to fit the contents unless you NEED it bigger than the contents.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    monte96_@hotmail.com
    monte96@vbgarage.com


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  3. #3

    Thread Starter
    Member
    Join Date
    Oct 2000
    Location
    Sussex, England
    Posts
    45
    Nope did'nt make any difference, there just seems to be an extra space just like there is a <br> there or soemthing but there is'nt ... very odd. It's happend before if i remember correctly, it seems to be related to the form in some way.

    Ian.

  4. #4
    Guest
    I've had this problem too. Forms seem to pad themselves if they are not inside some other formatted element like a paragraph. One way to get rid of the 'space' is by using styles, for example:

    <FORM STYLE="{ margin: 0px; }">


    Paul

  5. #5
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Make sure you specify in your table tag's attributes:

    cellspacing=0 cellpadding=0

    If you don't it will pad the cells. You didn't post your table tag before, but that could be the problem as well.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    monte96_@hotmail.com
    monte96@vbgarage.com


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

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



Click Here to Expand Forum to Full Width