0

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>
DisgruntledGoat
  • 70,219
  • 68
  • 205
  • 290
OM The Eternity
  • 15,694
  • 44
  • 120
  • 182

1 Answers1

1

See this question, the answer uses the YUI library: 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

Community
  • 1
  • 1
DisgruntledGoat
  • 70,219
  • 68
  • 205
  • 290