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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |