Re: [WSG] Line wrap multiple select box

2010-02-18 Thread Oliver Boermans
Hi Paul,

On 17 February 2010 01:51, Paul Collins  wrote:
> I'm have a fixed width on a multiple select box. The problem is, some of the
> options are longer than the width and by default the lines won't wrap. I'm
> wondering if anyone has seen a way of making lines wrap using either CSS or
> JQuery. I've added a title to each option, so you can get the full content
> if you hover over an item, but really need the text to wrap.

I’ve used this jquery plugin successfully in the past:


Haven’t tried this one:


Once I wrote some simple JavaScript which made the select wider upon
focus if necessary in Internet Explorer. Even with some absolute
positioning to ensure the surrounding layout wasn’t broken, the effect
was effective but a bit weird.

HTH
Ollie
@ollicle


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***



[WSG] Line wrap multiple select box

2010-02-16 Thread Paul Collins
Hi all

I'm have a fixed width on a multiple select box. The problem is, some of the
options are longer than the width and by default the lines won't wrap. I'm
wondering if anyone has seen a way of making lines wrap using either CSS or
JQuery. I've added a title to each option, so you can get the full content
if you hover over an item, but really need the text to wrap.

Would appreciate any help.
Cheers
Paul


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***