Login | Forgot password | Register
What is OpenID?
OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.
With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.
For more information visit the official OpenID site.
Archive
SilverStripe Forums » Archive » Form Field Position
Our old forums are still available as a read-only archive.
|
Page:
1
|
Go to End | |
| Author | Topic: Form Field Position | 827 Views |
-
Form Field Position

4 June 2008 at 10:01pm Last edited: 4 June 2008 10:01pm
Hi all,
I have two form fields and want to position the fields horizontally instead vertically
which is by default.
Can anyone tell me how to do it?example
form field1 form field2Thanks in advance
Mohan
-
Re: Form Field Position

13 June 2008 at 5:10pm
You can just float the divs / inputs left within CSS. Each Form element has tons of excess code you can tap into!
-
Re: Form Field Position

15 July 2008 at 6:29pm Last edited: 15 July 2008 6:29pm
Alternatively, you can wrap the elements in the FieldGroup object, which doesn't wrap each element with a container div, so the elements fall inline to eachother.
For example:
new FieldGroup(
new TextField('Name'),
new EmailField('Email')
);
| 827 Views | ||
|
Page:
1
|
Go to Top |
Currently Online: JoshuaLewis
Welcome to our latest member: marcusl



