Friday, August 5, 2011

How to change the width of dropdown list in HTML,PHP,JAVA,DOT NET

Let us assume the drop down list is this one:--



<select name="drop-list" style="width: 200px;">
<option> First value <option>
<option> second value <option>
<option> third value <option>
<option> fourth value <option>
<option> fifth value <option>
<select>
 output is :




It is very simple just do this way:

------------------------------------------------------------------------------------

Now see the large width Drop down List


Type the following code:

<select name="drop-list" style="width: 400px;">
<option> First value <option>
<option> second value <option>
<option> third value <option>
<option> fourth value <option>
<option> fifth value <option>
<select>


see the output:

0 comments:

Post a Comment