# Need help with form layout

**URL:** <https://www.ruby-forum.com/t/need-help-with-form-layout/73079>\
**Category:** Rails\
**Created:** [February 25, 2006, 12:41am UTC](https://www.ruby-forum.com/t/need-help-with-form-layout/73079 "2006-02-25T00:41:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![wpwood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/d6d6ee/32.png) [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Post date:** [February 25, 2006, 12:41am UTC](https://www.ruby-forum.com/t/need-help-with-form-layout/73079/1 "2006-02-25T00:41:16Z")

</div>

Is there some way to format the layout of the fields within a form?  
I’ve got about 10 fields that I’d like to lay out in a couple of  
columns. Tried putting them in a table and that didn’t work too good.  
Any pointers will be very much appreciated.

Thanks,  
Bill

---

<div class="post-metadata">

**Author:** ![wpwood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/d6d6ee/32.png) [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Post date:** [February 25, 2006, 12:56am UTC](https://www.ruby-forum.com/t/need-help-with-form-layout/73079/2 "2006-02-25T00:56:19Z")

</div>

On Friday, February 24, 2006, at 5:25 PM, Bill W. wrote:

> Is there some way to format the layout of the fields within a form?  
> I’ve got about 10 fields that I’d like to lay out in a couple of  
> columns. Tried putting them in a table and that didn’t work too  
> good. Any pointers will be very much appreciated.
> 
> Thanks,  
> Bill

I think the “easiest” way to do this would be to make each element use  
relative positioning with CSS. I don’t think that there’s anything in  
Rails that will help with the layout in this manner. Perhaps separating  
each column into a partial, placing a div around each and then just  
positioning the 2 divs might make it a little less confusing in the  
stylesheet. I could be wrong though.

I’ve never given web design advice to a basketball legend before.

---

<div class="post-metadata">

**Author:** ![wpwood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/d6d6ee/32.png) [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Post date:** [February 25, 2006, 8:04am UTC](https://www.ruby-forum.com/t/need-help-with-form-layout/73079/3 "2006-02-25T08:04:16Z")

</div>

I don’t know if you are still looking for something to help with your  
forms, but I have a plugin called simple\_form that may help. You can  
check it out into your vendor/plugins directory from svn:

[http://opensvn.csie.org/calico\_rails/simple\_form](http://opensvn.csie.org/calico_rails/simple_form)

There is little documentation… I know, it’s a todo item.

Hope this helps.

Bill W. wrote:

> Is there some way to format the layout of the fields within a form?  
> I’ve got about 10 fields that I’d like to lay out in a couple of  
> columns. Tried putting them in a table and that didn’t work too good.  
> Any pointers will be very much appreciated.
> 
> Thanks,  
> Bill

---

<div class="post-metadata">

**Author:** ![wpwood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/d6d6ee/32.png) [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Post date:** [February 25, 2006, 3:34pm UTC](https://www.ruby-forum.com/t/need-help-with-form-layout/73079/4 "2006-02-25T15:34:58Z")

</div>

Hi Dylan,

I put a table with a nested ‘tr’ / ‘td’ structure and got unexplainable  
behavior including rows being in a different order than you’d expect  
from the code. I’d be happy to share the code and results if anybody’s  
interested.

Thanks,  
Bill

----- Original Message -----  
From: Dylan S.  
To: removed\_email\_address@domain.invalid  
Sent: 2006-02-25 1:12 AM  
Subject: Re: [Rails] Re: need help with form layout

What’s wrong with at table or a definition list ?  
I’ve used both, and my forms end up all nice and neat and such.  
I may not understand the question fully.

On 2/24/06, Steve R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:  
I don’t know if you are still looking for something to help with  
your  
forms, but I have a plugin called simple\_form that may help. You can  
check it out into your vendor/plugins directory from svn:

```
http://opensvn.csie.org/calico_rails/simple_form

There is little documentation... I know, it's a todo item.

Hope this helps.

Bill W. wrote:
> Is there some way to format the layout of the fields within a 

```

form?  
\> I’ve got about 10 fields that I’d like to lay out in a couple of  
\> columns. Tried putting them in a table and that didn’t work too  
good.  
\> Any pointers will be very much appreciated.  
\>  
\> Thanks,  
\> Bill

```
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails

```

* * *

* * *

Rails mailing list  
removed\_email\_address@domain.invalid  
[http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

---

<div class="post-metadata">

**Author:** ![wpwood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/d6d6ee/32.png) [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Post date:** [February 25, 2006, 3:47pm UTC](https://www.ruby-forum.com/t/need-help-with-form-layout/73079/5 "2006-02-25T15:47:02Z")

</div>

Hi Steve,

I see some things in your plugin that look like they might be very  
helpful.  
My problem is that I’m so new to RoR that I’m heavily dependent on  
documentation and/or list help like this. I’m pretty good at _doing_  
documentation though, so if you’d be willing to provide some offline  
help  
with using it, I’d be willing to put my learning down in writing. If  
you’re  
interested, let me know.

Thanks,  
Bill  
----- Original Message -----  
From: “Steve R.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: 2006-02-25 1:04 AM  
Subject: [Rails] Re: need help with form layout

---

<div class="post-metadata">

**Author:** ![wpwood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/d6d6ee/32.png) [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Post date:** [February 25, 2006, 8:13am UTC](https://www.ruby-forum.com/t/need-help-with-form-layout/73079/6 "2006-02-25T08:13:49Z")

</div>

What’s wrong with at table or a definition list ?  
I’ve used both, and my forms end up all nice and neat and such.  
I may not understand the question fully.
