Question

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>
        <?php echo $this->Form->input('Cuisine', array('label' => false, 'div'=> false, 'class' => 'short')); ?>

alt text

I am not finding any option to reduce this size. should i do it with CSS only ?

Was it helpful?

Solution 2

select { height: 210px;} 

worked. Thanks a lot.

OTHER TIPS

You could use the "size" attribute.

<label for="checkbox">Cuisines:</label>
<?php echo $this->Form->input('Cuisine', array('label' => false, 'div'=> false, 'size' => 3)); ?>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top