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

2012-05-15 Thread Amit
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


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

2012-05-15 Thread Paulo Victor
Well I do it like this, in my exemple:



I guess in your case would be something like:

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

2012/5/15 Daniel 

> 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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


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

2012-05-15 Thread Dominik Gajewski
Why don't you use CSS?

2012/5/15 Daniel :
> 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+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php



-- 
Pozdrawiam
Dominik Gajewski

-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


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

2012-05-15 Thread Daniel
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php