1

My JSP/JSTL page has a dropdown box, and the size of the dropdown box is 20. Some contents inside the dropdown box are bigger than dropdown box size (20). Firefox displays all bigger contents in dropdown box automatically and IE 7 and IE 8 are not. So, In IE 7 and IE 8, I can see the contents till the 20th place (same to drop down box size).

Is this a problem with IE 7 and IE 8?

Could anyone please suggest some solution so that the dropdown box contents display like Firefox?

Isabel Jinson
  • 8,541
  • 16
  • 59
  • 75
  • 2
    You're going to have to post the HTML or else it will be very difficult for anybody to guess what the problem is. – Pointy Feb 28 '11 at 16:52
  • possible duplicate of [Dropdownlist width in IE](http://stackoverflow.com/questions/73960/dropdownlist-width-in-ie) – BalusC Mar 03 '11 at 18:21
  • @ Balus C : This is not a duplicate of http://stackoverflow.com/questions/73960/dropdownlist-width-in-ie , the auto width does not look good if two or more drop down boxes are in same line. – Isabel Jinson Mar 28 '11 at 07:17

1 Answers1

0

The answer is in the question. You have specified that the dropdown can only be 20 wide. Also the behavioural differences between FF and IE could be due to lack of DTD in your jsp page

use the css attribute min-width instead of "size 20" The browser will then always make your dropdown that width, unless you have wider content in the dropdown.

Mark W
  • 5,824
  • 15
  • 59
  • 97