Installation
- Attach modular_forms.css to you document or stylesheet
- Add class="mForm" to form tag
- Add appropriate classes to label tags
Notes - Forms should be constructed using label tags 'wrapped' around form feilds. Then apply following classes to labels to implement layouts (see source code for examples)
Styles have been created to allow layout to work regardless of form width. Change configuration on modular_forms.css for different label/field ratio or to fine-tune appearance
- .mForm
- add class to form tag - prevents css affecting other page elements
- .mFtxt
- for single line text input
- .mFselect
- select box
- .mFtxtarea
- text area element
- .mFtxtarea_big
- larger text area element
- .mFcheck
- for checkboxes and radio buttons
- .mFbutton
- for all buttons (creates visual appearance)
- .mFbutton1
- button layout 1
- .mFsubmit
- Form submit button
- .mFfile
- File upload field