Tuesday, May 15, 2012

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

Well I do it like this, in my exemple:

<td style="width: 365px"><?php  echo $post['Area']['Descricao']; ?></td>

I guess in your case would be something like:

  $this->Form->input('username', array('width'=>'365px'))

2012/5/15 Daniel <danwgrace@gmail.com>
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

--
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