CSS problems
Gabrys wrote on 29 Jan 2010 09:55
- div#dataform
- #<type>
- #<type>-required
- #<type>-error
Where '<type>' is the field type (text, number, tag, checkbox, etc.). The -required class highlights required fields for the > user. The -error class shows the field when it has an error (missing or fails match in current design).
Each table row has an ID of the field name (or the first field name on the row, if there are several).
- means ID, we don't want to pollute HTML namespace with user customizable IDs. I propose using classes. In addition to type classes, it would be also nice to add classes for field names, so that people can style individual fields and not only different types.
Comments: 4
page revision: 1, last edited: 05 Feb 2010 15:31
That would be great! I'd use this.
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
Seriously? So you can make forms where fields of different types look different?
As a UI designer this kind of freedom looks pathological. Can you give me an arguable use case?
Portfolio
Other than creating eye-candy websites? Can be for example aligning some text fields to right, while other to left, or having different background colors depending on how important is the field, or who is the right person to fill it (for example: bug reporter fills gray fields, bug assigner yellow fields and bug resolver green). Or things as stupid as having bigger font for important fields, while keeping it small for "some related data", think of car market, when you want a few information to be emphasized (brand, year, diesel/gas) and some not (like additional equipment).
And giving the possibility to create eye-candy websites, where users want to have total control on how certain fields look like.
Also, should not be hard to do and allows easy styling so why not to do it?
Piotr Gabryjeluk
visit my blog
There will be no ID fields, we will use only classes.
New form model (boxes and class names) for Data Forms will be at Monday.
Bartłomiej Bąkowski @ Wikidot Inc.
';.;' TeRq (Write PM)