tags:

views:

49

answers:

1

Select box hides the lengthy text as its option when displayed in IE whereas it is displayed perfect with Firefox, How can I rectify this issue...

<select name="product" id="product" style="width:135px;" onChange="javascript:refill();bannersize();">
    <option value="">Select Product</option>
    <?php while($result=mysql_fetch_object($sql_query))
    {
    ?>
    <option value="<?php echo $result->categories_id;?>"><?php echo $result->categories_name;?></option>
    <?php 
    }
    ?>
</select>
+1  A: 

See this question, the answer uses the YUI library: http://stackoverflow.com/questions/73960/dropdownlist-width-in-ie

This page also has a nice solution: http://www.dougboude.com/blog/1/2008/05/Viewing-Option-Text-in-IE7-thats-Wider-than-the-Select-List.cfm

DisgruntledGoat