--- title: Form layout description: Form Layout offers structured classes for creating accessible, consistent, and responsive form layouts. --- The class `.env-form-row` creates a multi purpose container used to create form layouts. The class `.env-form-column-{n}` inside a row will control the sizing of the columns. When using form layouts, generally the `.env-form-field` wrapper is not needed. ### Form columns Use `.env-form-row` as a wrapper for multiple `.env-form-column-{n}` elements to place form fields horizontally. Use `.env-form-column-{n}` to specify the width of an element relative to other elements on the row. Valid values are `1-6`. Default is `1`. Form fields may optionally be stacked below a certain container width. Use `.env-form-row--stack-{width}` to activate. Valid values for `{width}` is `s`, `m` and `l`. ```html resizeable
``` ### Horizontal form field Combine `.env-form-column-{n}` with `.env-form-label` and `.env-form-control` inside an `.env-form-row` element to place label and control horizontally. Use `.env-form-column-{n}` on the label or control element to specify the width of label and control relative to each other. Valid values are `1-6`. Default is `1`. Stacking is supported using `.env-form-row--stack-{width}`. Valid values for `{width}` is `s`, `m` and `l`. ```html resizeable ``` ### Inline option elements Use `.env-form-row` as a wrapper for multiple `.env-form-control` elements containing `.env-radio` or `.env-checkbox` to create a inline form layout for option inputs with consistent spacing vetically and horizontally. ```html resizeable ```