Hi! Does anyone know if it is possible, using HTML::FormFu, to change the Element rendering so that it does NOT enclose each form element in a div, with a default class equal to the Input type?

I am trying to create a simple form whereby most input fields are stacked vertically (VBox), but have some field groups (like City-State-Zip) that I want horizontally (HBox)

In every case, I would like a label directly on-top of the Input box. I can do this easily in plain HTML by grouping the Input Elements, along with their Label, in Div (display: block) and having them float to the left.

But when I try it with FormFu, those darn extra Divs around every element screw up my alignment. Here is what I've tried:

--- attributes: id: form class: plain_form action: /login indicator: submit auto_fieldset: { id: clentform } elements: - type: Block tag: div attributes: class: formContainer elements: - type: Block tag: div attributes: class: formInput elements: - type: Text name: xref - type: Text name: since - type: Text name: kind - type: Fieldset - type: Text name: name - type: Text name: addr1 - type: Text name: addr2 - type: Fieldset - type: Text name: city - type: Text name: state

.etc

Maybe I am trying to do something that can't be done? It seems possible only with tons of Blocks around everything.

Any suggestions?

Thanks


In reply to HTML::FormFu element attributes by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.