Re: HTMLQuickForm: how can I add/mark a CSS class to the table generated by QuickForm?

From: Date: Tue, 02 Aug 2005 19:58:33 +0000
Subject: Re: HTMLQuickForm: how can I add/mark a CSS class to the table generated by QuickForm?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20236@lists.php.net to get a copy of this message
On 8/2/2005 9:55 PM, l Burnerheimerton spake the following words: >I have pages with other tables that I DO NOT want to >be affected by the style I assign to the QF generated >table. > >Specifically, I want to add cellpadding and perhaps >alter other design elements as I learn more about CSS. > >How can I assign a CSS class to the table that is >generated by QuickForm? What about the <TR> tag? > > Probably the best way to do it (since it is not to my knowledge natively supported) is to modify the default renderer to suit your needs. Basically, just set your own template for the form. Should work like a charm. See the renderer manual pages for more details. Klaus

« previous php.pear.general (#20236) next »