It's for XHTML compatibility; <input> tags must be inside a block
level element such as <div>. What we should do is add a CSS class,
say "hidden-container" to the <div> so that you can re-style it using
CSS to be an inline.
On 10/20/05, Jeff Emminger <[EMAIL PROTECTED]> wrote:
> what's with this method surrounding the hidden fields in a <div>? <div>
> is a block-level element and would potentially add a line break
> wherever a Form is placed.
>
> i typically style my <form> tags as
> form {
> display:inline;
> margin:0;
> padding:0;
> }
>
> to prevent them adding any whitespace, so this new <div> caused
> unexpected results. is it there for xhtml validation compliance? if so,
> perhaps add an inline style to it:
>
> <div style="display:none;">
> <input type="hidden" ...
> </div>
>
> thoughts?
>
> thanks,
> jeff
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]