Page 1 of 1

2 column contact form

Posted: Sun May 04, 2014 10:05 am
by josephinex21
Hi,

I need 2 column contact form, that is 2 blocks and have no idea how to write in the template so it works. I am completely new to this cms and there's a huge lack of documentation and information.
I need items with a particular css class to be aligned on the right and the rest on the left. By default the input and label are wrapped in a div. How to access that div's class? I have tried something like this but it didn't help much.

[code]{if $entry->css_class=='formgroup-right'}
<div class="right-side">
.............
</div>
{/if}[/code]

Re: 2 column contact form

Posted: Mon May 05, 2014 10:27 am
by Kumquats
In Formbuilder choose "fieldset" (Start and End) to separate the two columns and apply your css to each...

Re: 2 column contact form

Posted: Mon May 05, 2014 6:37 pm
by Dr.CSS
You can set class to the individual input divs on the second tab when adding/editing them, and yes wrapping the set of inputs in their own fieldset helps a lot, you can then float left/set width on these fieldsets...