Closed Thread Icon

Preserved Topic: dropdown box width... (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=17989" title="Pages that link to Preserved Topic: dropdown box width... (Page 1 of 1)" rel="nofollow" >Preserved Topic: dropdown box width... <span class="small">(Page 1 of 1)</span>\

 
3rdperson
Paranoid (IV) Inmate

From: your subconscious. (scared yet?)
Insane since: May 2001

posted posted 06-26-2001 06:45

after much experimentation, threep inquires:
"does anyone know how to fix the width of a dropdown dox, so that if the option is too wide for the box, it simply wraps to two lines?
i've tried stylesheets, tables, line breaks.... and can't find anything yet. any help would be muchly appreciated."

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 06-26-2001 06:56

Pugzly, searching around, remembers a tutorial at the Gurus Network, and says:

"Try this out: http://gurusnetwork.com/tutorials/css/csstut.html - I don't know if it will work, but there is a section on setting widths."

Pugzly then realizes he likes this third person perspective....

3rdperson
Paranoid (IV) Inmate

From: your subconscious. (scared yet?)
Insane since: May 2001

posted posted 06-26-2001 07:03

threep laughs at his apparent trendsetting, and gets to work on the tip, even though it was very similar to his previous attempts.
sure enough, the same problem occurs, which he reports to pugz (and any other interested parties):
"when i use this:

code:
style="width: 150px;" width="150"


...or any other similar variation, this is what happens:
- in explorer, my supah wide dropdown now is the right width, but it simply chops off any excess characters...
- in netscape, the width still stretches out to fit all characters in.
...anyone got any other ideas?"

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 06-26-2001 07:59

There's no way to make dropdown items wrap to two or more lines. You can have only one item in one line (that's how dropdown menus work, just take a look at other Windows applications).



[This message has been edited by mr.maX (edited 06-26-2001).]

3rdperson
Paranoid (IV) Inmate

From: your subconscious. (scared yet?)
Insane since: May 2001

posted posted 06-26-2001 08:13

finally conceding to the inevitable, threep says:
"thanks for the confirmation, mistah max. i'll be off playing with other things then!"
...and he runs off to play with other things.

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 06-26-2001 21:00

also how would you know if something was wrapped or another selection? You'd have to have some sort of indenting etc. sucks I know.


you could ad some JS string manipulation and write the list out dynamically to help make sure that none of your entries are too wide.

If the list is generated from the server via some sort of scripting language you could do it there too.


Walking the Earth like Kane

« BackwardsOnwards »

Show Forum Drop Down Menu