From: Thomas 'PointedEars' Lahn on
SamuelXiao wrote:

> Thomas 'PointedEars' Lahn wrote:
>> SamuelXiao wrote:
>> > I have been searching google for hours but still cannot get a
>> > workaround to suit my application. What I want to do is to make the
>> > select's behavior looks like FF.7
>> > [http://css-tricks.com/select-cuts-off-options-in-ie-fix/hasagood]
>> > [...] Is there any way to make it looks like FF? The select
>> > element's width can be separated/different from options' width?
>>
>> [...] you only need to implement what is described "In plain English"
>> there.
>> [...]
>
> Actually, I want to make it looks like FF which the width of <select>
> can be separated from width of <option>, but the example provided
> doesn't work exactly like that.

This cannot be done except if you forego all attempts to adhere to
usability/accessibility guides and legislation, and design your own
control. (Don't.)

> Anyway, I use the plain English to write the code, now a workaround has
> been done.

You may post the relevant parts or (if longer) its URL here so that others
can benefit and recommendations for improvement can be made.

However, as it may not be obvious to you: If you would not set the control
width in the first place, you would not need to apply a workaround for the
borken MSHTML rendering.

> Thanks all!

You are welcome.

Please trim your quotes to the relevant minimum next time. See above and
below how it can be done.

<http://jibbering.com/faq/#posting>


PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16