Reply to Options in select Box

Your name:

Reply:


Posted by sandeepsinghal on 10/21/06 05:17

I have a select (drop down) in my webpage which has got options of
varying length. Some of them very long. I want to fix the width of
select dropw down so that it appears consistent with other elements on
my page (input boxes , other select boxes)
The problem is that since the option length is big, they are not
visible on the screen. This happens only for IE. Firefox nicely expands
the option length and shows the entire option and keeping the select
box width constant at the same time.
Is there any way I can do this in Internet Explorer.

Here is a sample code :

<html>

<head>
<title>Select Box Width</title>
</head>

<body>


<h3>Drop down with onhover</h3>
<select id="id1" name="name1" style="width:60px;">
<option value="1">AAAAAAAAA</option>
<option value="2">BBBBBBBBBBBBBB</option>
<option value="3">CC</option>
<option value="4">DDDDDDDDDDDDDDDD</option>
<option value="5">EEEEE</option>
</select>
<br/>

</body>

</html>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация