Jump to content

Extra Line break, How can I remove it?


jack5100nv

Recommended Posts

Ok, I have the following code. I want the form fields with the Submit button nicely tucked in the table row with bgcolor. However, whgen I view it in Firefox or IE8, I get extra space under the form fields (see screenshot). How can I remove that extra space. I tried Including the form in div tags and stuff but no luck.

 

<html>

<body>

<br><br>

        <table align="center" cellpadding="0" cellspacing="0" width="780" valign="top">

        <tr>

            <td bgcolor='#cccccc' align='right'>

        <form method='post' action='test.php'>

<input type='text' size='15' name='searchtext'>

<select name='cat'>

        <option value='1'>Test1</option>

        <option value='2'>Test2</option>

        <option value='3'>Test3</option>

</select>

<input type='submit' value=Submit> 

</form>

 

            </td>

</tr>

</table>

</body>

</html>

 

[attachment deleted by admin]

Link to comment
Share on other sites

Try putting the form outside the table, it sometimes works for me.

But it really should matter though.

<html>
<body>
<br><br>

        <form method='post' action='test.php'>
        <table align="center" cellpadding="0" cellspacing="0" width="780" valign="top">
        <tr>
            <td bgcolor='#cccccc' align='right'>
   <input type='text' size='15' name='searchtext'>
   <select name='cat'>
        <option value='1'>Test1</option>
        <option value='2'>Test2</option>
        <option value='3'>Test3</option>
   </select>
   <input type='submit' value=Submit>
            </td>
   </tr>
   </table>
   </form>
</body>
</html>

 

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.