I have a HABTM relation and when i use the following code. the Multiple Select is pretty long in size. i wanna know how to reduce the size.
<label for="checkbox">Cuisines:</label>
<?开发者_如何学JAVAphp echo $this->Form->input('Cuisine', array('label' => false, 'div'=> false, 'class' => 'short')); ?>
I am not finding any option to reduce this size. should i do it with CSS only ?
You could use the "size" attribute.
<label for="checkbox">Cuisines:</label>
<?php echo $this->Form->input('Cuisine', array('label' => false, 'div'=> false, 'size' => 3)); ?>
select { height: 210px;}
worked. Thanks a lot.
精彩评论