multiple select size in chrome

Web hosting, SEO, etc... related
Post Reply
User avatar
viddz
Sergeant Major
Sergeant Major
Posts: 45
Joined: Fri Aug 26, 2011 6:06 am
Location: Colombo

multiple select size in chrome

Post by viddz » Thu Jun 07, 2012 5:05 pm

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.
User avatar
Saman
Lieutenant Colonel
Lieutenant Colonel
Posts: 828
Joined: Fri Jul 31, 2009 10:32 pm
Location: Mount Lavinia

Re: multiple select size in chrome

Post by Saman » Fri Jun 08, 2012 2:30 pm

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.
User avatar
viddz
Sergeant Major
Sergeant Major
Posts: 45
Joined: Fri Aug 26, 2011 6:06 am
Location: Colombo

Re: multiple select size in chrome

Post by viddz » Fri Jun 08, 2012 6:42 pm

:D :D Thank u now it works perfectly. :clap:
Post Reply

Return to “Web Related”