Hi laceja, Try removing both the before and after attributes, and instead adding 'class' => 'short200' to the input array. There's really no need to add the span, you can style the input itself instead.
On Jan 18, 8:16 am, laceja <[email protected]> wrote: > I'm very new to CakePHP... this is my first CakePHP program outside of > the tutorials. I'm having a problem using CSS to format a input > fields. For example: > > echo $form->input('furnace_name', array('between' => '<span > class="short200">', 'label' => array('text' => 'Furnace Name:'), 'div' > => false, 'after' => '</span>')); > > creates the proper HTML, but the <span class="short200"> doesn't have > any affect. I used the included CSS file from CakePHP, removed all the > "input" class tags and added the "short200" tag, but nothing seems to > work. I did notice the HTML includes an id=furnacename, in this case, > and if I add an id of furnacename to the CSS file, it works. Is there > a way to get the <span class="short200" to work? > > Thanks for being patient with such a basic question.
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
