Tuesday, May 15, 2012

Re: How do you set the physical (pixel) width of an input field?

Recommend you use CSS for this. Attach a class to the input

code:
echo $this->Form->input('username', array('class'=>'username'));

css:
input.username { width: 120px; }

On Tuesday, May 15, 2012 7:31:02 AM UTC-5, Daniel wrote:
How do you set the physical (pixel) width of an input field?
For example I have an input field as follows:
echo $this->Form->input('username');
... say I want it to be 120 pixels on screen.  How do I do this?  Do I
use a "div"?

Thanks

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate