?
Solved

Whitespace after </form>

Posted on 2004-04-05
6
Medium Priority
?
255 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 100 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 18

Assisted Solution

by:bruno
bruno earned 100 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

Independent Software Vendors: 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…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses
Course of the Month10 days, 21 hours left to enroll

770 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