|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
ok, my <select> form element has a css width of 139px, but several items in the list require more space.
http://www.wascot.org.uk/temp/select_test.htm Firefox allows the drop-down (the menu that appears after onClick) to expand to accomodate the longest item in the list, however IE fixes the drop-down at 139px. Is there a way to control the width of the drop-down? Thx for reading this post... |
|
#2
|
||||
|
||||
|
hi, just change one line on areaField class
Code:
width: 139px; to Code:
max-width: 139px; works fine on both IE and FF |
|
#3
|
|||
|
|||
|
Quote:
Thanks for the reply, but doesnt seem to work when i try it... http://www.wascot.org.uk/temp/select_test.htm here, the second <select> has max-width: 139px; but IE doesnt recognise the max-width, and becomes the width of the longest item in the list. Anymore suggestions would be greatly appreciated |
|
#4
|
||||
|
||||
|
I don't believe max-width hasn't been implemented in IE properly.
I have seen other examples where people resorted to Javascript and DOM... |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Development > html <select> and CSS problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|