Page 1 of 1

multiple select size in chrome

Posted: Thu Jun 07, 2012 5:05 pm
by viddz

Code: Select all

<select  name="type" multiple="multiple" size="3" >
        <option value=''> Select user type </option>
        <option value="1"> AA </option>
        <option value="2"> BB </option>
        <option value="3"> CC </option>
        <option value="4"> DD</option>
        <option value="5"> EE</option>
</select>
In chrome 4 results are showing irrespective of size=3, If size is greater than 4 actual size is shown. Problem is arisen when size is less than 4. what shud i do here? I wanna show three options only.

Re: multiple select size in chrome

Posted: Fri Jun 08, 2012 2:30 pm
by Saman
It's a bug in the Chrome. As a workout, you may use something like <select style='height:35px;' size='2'>. Adjust the 35px according to your requirement.

Re: multiple select size in chrome

Posted: Fri Jun 08, 2012 6:42 pm
by viddz
:D :D Thank u now it works perfectly. :clap: