how to change the size property of a form text input? -


1) didn't find in css files in relation width of form input. 2) tried :

    array(         'spec' => array(             'name' => 'name',             'options' => array(                 'label' => 'your name',                 'size'  => '14',      <---this doesn't work!             ),             'type'  => 'text',         ),     ), 

without result!

so, possible change width (size property) of form text input in zf2 ?

thanks

put size in attributes instead of options

array(     'spec' => array(         'name' => 'name',         'options' => array(             'label' => 'your name',         ),         'attributes' => array(             'size' => 14,         ),         'type'  => 'text',     ), ), 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -