<form> design problem

M

Maria Sudderman

I have a problem!
Ii have a formular, and after the send button is a blank line.
can i delete this blank line?

<table border="1" width="400" cellspacing="0" cellpadding="0"
style="border-collapse: collapse" bordercolor="#000000">
<tr>
<td>
<form method="POST" action="--WEBBOT-SELF--">
<input type="text" name="T1" size="20">
<input type="submit" value="send" name="B1">
</form>
</td>
</tr>
</table>



Maria
 
N

Neredbojias

I have a problem!
Ii have a formular, and after the send button is a blank line.
can i delete this blank line?

<table border="1" width="400" cellspacing="0" cellpadding="0"
style="border-collapse: collapse" bordercolor="#000000">
<tr>
<td>
<form method="POST" action="--WEBBOT-SELF--">
<input type="text" name="T1" size="20">
<input type="submit" value="send" name="B1">
</form>
</td>
</tr>
</table>

I'd say yah, but why didn't you just try it?

--
Neredbojias

Once I had a little bird
That made me rather hasty.
So now I have no little bird,
But it was very tasty.
 
D

dorayme

"Maria Sudderman said:
I have a problem!
Ii have a formular, and after the send button is a blank line.
can i delete this blank line?

<table border="1" width="400" cellspacing="0" cellpadding="0"
style="border-collapse: collapse" bordercolor="#000000">
<tr>
<td>
<form method="POST" action="--WEBBOT-SELF--">
<input type="text" name="T1" size="20">
<input type="submit" value="send" name="B1">
</form>
</td>
</tr>
</table>

This the sort of effect you want:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Test</title>
<style type="text/css">
* {margin: 0; padding: 0}
td {border: 1px solid black}
table {width: 400px}
</style>
</head>
<body>
<table><tr><td>
<form method="POST" action="--WEBBOT-SELF--">
<div><input type="text" name="T1" size="20">
<input type="submit" value="send" name="B1"></div>
</form>
</td></tr></table>
</body>
</html>

?

(You don't need a table for this, try removing all table tags and
see for yourself)
 
A

Andrew Bailey

Maria Sudderman said:
I have a problem!
Ii have a formular, and after the send button is a blank line.
can i delete this blank line?

<table border="1" width="400" cellspacing="0" cellpadding="0"
style="border-collapse: collapse" bordercolor="#000000">
<tr>
<td>
<form method="POST" action="--WEBBOT-SELF--">
<input type="text" name="T1" size="20">
<input type="submit" value="send" name="B1">
</form>
</td>
</tr>
</table>



Maria

Hi Maria,

Just move the </form> down two lines so that it is in between the </tr> and
the </table>.

Hope that helps

Andy
 
D

dorayme

"Andrew Bailey said:
Hi Maria,

Just move the </form> down two lines so that it is in between the </tr> and
the </table>.

Hope that helps

You are kidding, of course... remember, the end does not
necessarily justify the means.
 
B

Ben C

Hi Maria,

Just move the </form> down two lines so that it is in between the </tr> and
the </table>.

Whatever you do DON'T do that! It's invalid (and of all forms of
invalidity, messing up forms and tables is the worst), meaning that it's
totally unpredictable what different browsers will do with it.

Just add form { margin: 0; } to the styles, or if you like:

<form style="margin: 0" method="POST" ...

etc.

It seems Firefox gives form a 16px bottom margin by default but not in
strict mode.

Always use strict mode. To get strict mode, put this as the first line
of your document:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
 
N

Neredbojias

Just move the </form> down two lines so that it is in between the
</tr> and the </table>.

Hope that helps

Ay chihuahua! You stinking gringo, you do the tango with the mango, don't
you?

--
Neredbojias

Once I had a little dog
Who wagged its tail spritely.
But it walked by the harvestor
And now is shorter slightly.
 
N

Neredbojias

"If you're the police, where are your badges?"

I'm in the "00" category. We have no badges, just plastic.

--
Neredbojias

Once I had a little dog
Who wagged its tail spritely.
But it walked by the harvestor
And now is shorter slightly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top