Helma Supported. I did create a custom stylesheet for forms that uses styled DIV containers and strips out all the nested tables [shudder]; its not straightforward, but it would be ideal to have this available to all users, so that users do not end up with reinventing the wheel. As you say, if parts cannot reasonably be done, then leave then.... but Cocoon does need to "move with the times" as far the commonly used page layout are concerned.
>>> [EMAIL PROTECTED] 2006/02/07 11:08:00 PM >>> Simone Gianni wrote: > Hello, > > I've been working with CForms for more than a year, and always ended up > overriding the default XSLs to add CSS classes and obtain proper > formatting. > > I think it could be a good idea to have CSS classes applied by the > default XSLs to make it easier to have forms look correctly, and avoid > to the user the need to write his own XSL just to get simple visual > effects, like the right spacing between labels and inputs. Currently > only error messages, tabs, the required mark and the double list have > their CSS class declaration. > > I've done this before, I can produce a patch for it, let me know if you > think this is a good idea or not. First off: the idea is great. But don't stop with just adding CSS labels. Use the opportunity to remove superfluous tables and make better use of CSS. However, I've tried before and here are the issues I ran into: - proper usage means a <label for="input-id">label text</label><input id="input-id"/>. When I was working on this, not all fields had a label. Mind you, not every widget can. - current AJAX functionality requires extra DIVs to be able handle the update. - you can add a default kind of styling like "columns" and "rows" to get vertically or horizontally oriented styling. To be compatible, you need to either add enough classes the XSL adds the proper class, or you define meaningful classes and style them differently in different CSS files. I prefer the last. - it would be great if you removed the table-layout (of the default styling) as well. But beware that it's a tough job. - some widgets (e.g. double list) are very tough to change to something other the current table. Thanks. Bye, Helma -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
