You are here: Re: <form> inside <span>? « HTML « IT news, forums, messages
Re: <form> inside <span>?

Posted by Rob McAninch on 01/12/06 00:17

"Beauregard T. Shagnasty" <a.nony.mous@example.invalid> wrote in
<news:5jji1k9bijcv.t2w17sg4j6ua$.dlg@40tude.net> :

> Rob McAninch wrote:
>> "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> wrote
>> in <news:1rvxffxa10fuq.1ayp65dmi8t9v$.dlg@40tude.net> :
>>
>>> Michael wrote:
>>>
>>>> Am I allowed to do: <span><form ..>...</form></span> or
>>>> will certain browsers choke?
>>>
>>> <span> is an inline element [...] <form> is block-level
>>> element.
>>
>> You could re-style form as display:inline
>
> form { display: inline; }

That's the idea if you want to dispense with the span and treat
form as inline. Using form within span; you already pointed out
was invalid.

>> or try using the input without form...
>
> and defeat the general purpose of having a form...

INPUT is generally found in a form, but isn't required to be.
Depending on the op's purpose this is an option.

--
Rob McAninch
http://rock13.com

 

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

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