CSS classes for forms
pieterh wrote on 05 Feb 2010 15:31
Proposed CSS classes (somewhat simpler than today's names):
CSS Styling
You can modify the look and feel of your data forms using CSS (either per-site, or per page using the CSS module. This is the CSS model for data forms:
- table
class: form-table- tr
class: form-row- td
class: form-labels- span
class: form-label
- span
- td
class: form-values- span
class: form-value field-{name}
class': form-error (added to field while save when there is matching error)- {field}
class: form-{type}
class': form-hinted (added to field with hint inside) - span
class: form-message
- {field}
- span
- td
- tr
Symbols:
{name} - name of the field
{type} - type of the field (text, select, pagepath etc.)
Will the use of tables as a layout change? | By Steven Heynderickx | 2 Comments | 06 Feb 2010 22:55 |
Comments: 1
page revision: 6, last edited: 15 Feb 2010 11:36
Implemented as specified, I'm closing this subthread.
Portfolio