Solved

Whitespace after </form>

Posted on 2004-04-05
6
237 Views
Last Modified: 2006-11-17
How can I get rid of the whitespace after the </form> tag in IE?

Or visual: How to get the red and black border overlap eachother?

[code]
<table style="border: solid red 2px;">
<tr><td><form action="/inbox/?forward=12" method="get" style="border: solid black 2px;">
<input type="text" name="Emailaddress" maxlength="50" style="width: 200pt;">
<input type="submit" name="submit" value="Submit" style="position: relative; top: -2px; width: 75pt; font-size: 11px;">
</form></td></tr></table>
[/code]
0
Comment
Question by:chrishintz
  • 3
  • 2
6 Comments
 
LVL 8

Expert Comment

by:tncbbthositg
ID: 10756777
Chris,

  I've had that problem too.  Usually, I find that I only really need one form per page so I dont have that problem anymore, but I think I used one of display settings (probably inline) or I used a negative margin (i.e., margin-bottom: -10px;).  Line-height might work too.  I'm not sure.

I know this doesn't help much.  Cd& and seanpowell probably will help more.

TNC
0
 
LVL 7

Accepted Solution

by:
TheKenman earned 25 total points
ID: 10756928
Hi chrishintz, try this:

[code]
<table style="border: solid red 2px;">
<tr><td><form action="/inbox/?forward=12" method="get" style="border: solid black 2px; margin:0px;">
<input type="text" name="Emailaddress" maxlength="50" style="width: 200pt;">
<input type="submit" name="submit" value="Submit" style="position: relative; top: -2px; width: 75pt; font-size: 11px;">
</form></td></tr></table>
[/code]
0
 
LVL 18

Expert Comment

by:bruno
ID: 10759316
<form style="display: inline;">

or in your CSS


<style>
form {
display: inline;
}
</style>



bruno
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 18

Assisted Solution

by:bruno
bruno earned 25 total points
ID: 10759405
to make them overlap:

<table cellspacing="0" cellpadding="0" style="border: solid red 2px;">
<tr><td><form style="display: inline;" action="/inbox/?forward=12" method="get" style="border: solid black 2px;">
<input type="text" name="Emailaddress" maxlength="50" style="width: 200pt;">
<input type="submit" name="submit" value="Submit" style="position: relative; top: -2px; width: 75pt; font-size: 11px;">
</form></td></tr></table>
0
 
LVL 18

Expert Comment

by:bruno
ID: 10792863
glad we could assist, thanks for the A.
0
 
LVL 7

Expert Comment

by:TheKenman
ID: 10793405
I concur, thanks =)
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question