src/Form.php
public function align($direction = 'horizontal', $collapse = 'sm', $indent = 2)
    {
        if ($direction == 'collapse') {
            $this->align = '';
        } elseif ($direction == 'inline') {
            $this->align = 'form-inline';
        } else {
            $this->align = 'form-horizontal';
            $this->collapse = (in_array($collapse, array('xs', 'sm', 'md', 'lg'))) ? $collapse : 'sm';
            $this->indent = (is_numeric($indent) && $indent > 0 && $indent < 12) ? $indent : 2;
        }
    }
public function align($direction = 'horizontal', $collapse = 'sm', $indent = 2)
    {
        if ($direction == 'collapse') {
            $this->align = '';
        } elseif ($direction == 'inline') {
            $this->align = 'form-inline';
        } else {
            $this->align = 'form-horizontal';
            $this->collapse = (in_array($collapse, array('xs', 'sm', 'md', 'lg'))) ? $collapse : 'sm';
            $this->indent = (is_numeric($indent) && $indent > 0 && $indent < 12) ? $indent : 2;
        }
    }
public function align ( $ direction = 'horizontal' , $ collapse = 'sm' , $ indent = 2 ) { if ( $ direction == 'collapse' ) { $ this -> align = '' ; } elseif ( $ direction == 'inline' ) { $ this -> align = 'form-inline' ; } else { $ this -> align = 'form-horizontal' ; $ this -> collapse = ( in_array ( $ collapse , array ( 'xs' , 'sm' , 'md' , 'lg' ) ) ) ? $ collapse : 'sm' ; $ this -> indent = ( is_numeric ( $ indent ) && $ indent > 0 && $ indent < 12 ) ? $ indent : 2 ; } }
Utilize any Bootstrap form style.

@param string $direction The options are:

- '**collapse**' - This will display the form prompt immediately above the field.
- '**inline**' - All of the fields will be inline with each other, and the form prompts will be removed.
- '**horizontal**' - Vertically aligns all of the fields with the prompt immediately preceding, and right aligned.
@param string $collapse Either '**xs**', '**sm**', '**md**', or '**lg**'.  This is the breaking point so to speak for a '**horizontal**' form.  It is the device size on which the form will '**collapse**'.
@param int    $indent   The number of columns (up to 12) that you would like to indent the field in a '**horizontal**' form.

@example

```php
$form->align('collapse');
```
Utilize any Bootstrap form style .