Solved

Whitespace after </form>

Posted on 2004-04-05
6
230 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
Comment Utility
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
Comment Utility
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
Comment Utility
<form style="display: inline;">

or in your CSS


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



bruno
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 18

Assisted Solution

by:bruno
bruno earned 25 total points
Comment Utility
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
Comment Utility
glad we could assist, thanks for the A.
0
 
LVL 7

Expert Comment

by:TheKenman
Comment Utility
I concur, thanks =)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

"I want to put my photos online, but I don't want them stolen.  What settings should I use?" When You Put Photos Online First and foremost, any digital file published on the WWW can be copied, stored, modified, retransmitted, etc.  Remember Naps…
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 define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…

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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now