View Full Version : Help with Form in JS

30 Dec 2011, 10:03 AM
Im having trouble styling a form, i want to make something like this:

View: Form1.jpg30384

But everything i've tried didn't work so far, here is my last attempt:

View: Form2.jpg and code (form2.html,form2.js).

I want to know, what do i have to do, to get something similar to the example, also i want the form to adjust to the window size, but i don't know how to make
this happen.

Thank you in advance for your help.

30 Dec 2011, 11:05 AM
Two things I see.. the border around each column and the field label align to the left.

The border of each column is caused because you are probably wrapping the fields in a panel. Try it with a container.

The field label alignment is simple, on your fields (more in the defaults object of the container) set the labelAlign to 'right'

30 Dec 2011, 11:16 AM
Thanks you, for your help.
Soon show you the result.