Aligning fields in a row

  1. First add a new or use an old Form Folder object.
  2. Go to your Form Folder and click on QuickEdit.
  3. Add/use the fields that you want to align horizontally. We will just be using String Fields for this example.

  4. Next add a Fieldset Start before the first field in the row. Name the fieldset whatever you want. If you don't want the fieldset label to show up, make sure to uncheck the Show Title as Legend checkbox.
  5. Then add a Fieldset End at the end of the set of fields you want aligned.


  6. Now add the following CSS rule to a CSS file or your site's Local CSS.

  7. body.template-fg_base_view_p3 fieldset .field {
    float: left;
    clear: none;
    }

  8. Now you should have a row of fields like the picture below.

  9. Edit the size of the fields to fit more horizontally. For the example, we will be using the Departmental Theme with the field size set to 15.

    Note: Add this CSS rule if your field size doesn't change when themed.

    body.template-fg_base_view_p3 div[id*=archetypes-fieldname] input {
    width: initial;
    }

    Before


    After


  10. The Departmental Theme's main content element size can be increased when there are no right side portlets.

    @media (min-width:800px)
    {
    .departmental.template-fg_base_view_p3 #content-main {
    width: 690px;
    }
    }