Reply to Re: Limiting width of <select> box

Your name:

Reply:


Posted by Manny Klystron on 12/21/06 18:39

Thanks folks, I stupidly assumed <SELECT width="120px"> would do the
same, but IE7 does honor it in a style. Unfortunately it doesn't honor
style="text-overflow:ellipsis", so the <option>s just get truncated.

And yes, this is for a fixed-width widget. I didn't design it, and
it's for a small captive audience.

On that note, where's a good place to look for implementing spiffy
Google-style widget drag and drop?

Jukka K. Korpela wrote:
> Scripsit Toby Inkster:
>
> >> How do I peg the width of the box generated by a <select> tag,
> >> clipping <options> that're too long for it?
> >
> > Errr... <SELECT style="width:120px;">
>
> That might, of course, actually "work" and possibly truncate the options to,
> say, two or three characters. Depending on the font size, which _can_ be
> enforced by the user.
>
> Instead of creating such problems, the OP should analyze and perhaps
> describe us the original problem and the reasons he though that limiting the
> width of <select> would solve it. If it's the usual "problem", namely an
> attempt to maintain a rigid pixel-dimensioned layout and make a form very
> small, then the real solution is to stop creating such problems.
>
> --
> Jukka K. Korpela ("Yucca")
> http://www.cs.tut.fi/~jkorpela/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация