Solved

Whitespace after </form>

Posted on 2004-04-05
6
239 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

749 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