You are here: Re: <form> design problem « HTML « IT news, forums, messages
Re: <form> design problem

Posted by Ben C on 06/28/07 09:17

On 2007-06-28, Andrew Bailey <andy@idontwantanyspam.com> wrote:
>
> "Maria Sudderman" <maria_sudxx@gmx.de> wrote in message
> news:f5u2v3$r7m$02$1@news.t-online.com...
>>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>.

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">

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация