RE: [PEAR] quickform: how to add style <span class="classname">formelement</span> to ONE element

From: Date: Tue, 01 Aug 2006 18:45:24 +0000
Subject: RE: [PEAR] quickform: how to add style <span class="classname">formelement</span> to ONE element
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24810@lists.php.net to get a copy of this message
Trying removing the semicolon Array( 'class' => 'className' ); While not QF related make sure you've included your css on your form page, and that the class does what you think it is supposed to do; Mark -----Original Message----- From: l Burnerheimerton [mailto:lburnerheimerton@yahoo.com] Sent: Tuesday, August 01, 2006 11:01 AM To: pear-general@lists.php.net Subject: [PEAR] quickform: how to add style <span class="classname">formelement</span> to ONE element I have on element I want to highlight in yellow. $form->addElement('text','note', 'Note:'); I have tried several variants of: $form->addElement('text','note', 'Note:', array('class' => 'hilite;')); where "hilite" is a class referenced in a stylesheet. but they don't work. I'm pretty sure it can be done without altering the form/element templates. Any ideas are much appreciated! __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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