perhaps the best of both worlds would be an optional css class parameter so the developer could style this block of fields if they wanted?

Ron Piterman wrote:
Hi,
Is there any situation where this div full of hidden inputs should *not* be hidden?

if you add a css class - you have to :
document (there is really enough there already), keep in mind (which is already overfull), tell the designer (which has its own problems) etc.

what is the reason not to add a simple display:none to it?
does someone need this div to apear somehow? its all hidden inputs...

Cheers,
Ron

ציטוט Howard Lewis Ship:

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]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to