php - How do I add inline css to dropdown in Yii? -


this code:

 <?php echo $form->dropdownlist($model, 'type', chtml::listdata($ab->type, 'id', 'name'), array('class' => 'edit'), array('width:165px')); ?> 

i trying add inline css dropdown, example not work. why ?

it should this:

<?php echo $form->dropdownlist($model, 'type', chtml::listdata($ab->type, 'id', 'name'), array('class' => 'edit', 'style' => 'width:165px')); ?> 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -