Jon-
Thanks for the suggestion. I tried it... but it did not seem to work.
I added the CSS to my main css file. And this is what I have in the
view:
=================
<h3 style="margin-bottom:10px">Change Your Password</h3>
<p style="margin-bottom:10px">Enter your new password twice to change
it.</p>
<?php echo $form->create('User', array('action' =>
'change_password')); ?>
<fieldset class="noformat">
<?php
echo $form->input('password', array('label'=>'New Password:',
'type'=>'password', 'class'=>'input input-long', 'after'=>'<br />'));
echo $form->input('password2', array('label' => 'Confirm New
Password:', 'type' => 'password', 'style' => 'width:150px', 'after' =>
'<br />'));
?>
</fieldset>
<?php echo $form->end('Change Password', array('style' => 'margin-top:
5px')); ?>
====================
On Dec 10, 5:35 pm, "Jon Bennett" <[EMAIL PROTECTED]> wrote:
> Hi maytawn,
>
> > I have an instance where I need to increase the width and style of the
> > <label> tag that is automatically created with the $form->input()
> > method. Since I already have a base CSS defined for all <lable> tags
> > I would like to add some inline CSS using the style="" attribute. I
> > am able to add the style="" attribute to the <input> tage using the
> > 'options' key 'style' as shown below.
> > echo $form->input('password', array('label' => 'New Password:', 'type'
> > => 'password', 'style' => 'width:150px', 'after' => '<br />'));
>
> why not add more than one class?
>
> .input-long label {
> clear: both; display: block; width: 150px;
>
> }
>
> .input-long input {
> clear: both; width: 150px;
>
> }
>
> echo $form->input('password', array(
> 'label' => 'New Password:',
> 'type' => 'password',
> 'class' => 'input input-long'
> ));
>
> hth
>
> jon
>
> --
>
> jon bennett
> w:http://www.jben.net/
> iChat (AIM): jbendotnet Skype: jon-bennett
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---