Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<option> too long 1

Status
Not open for further replies.

mmaz

Programmer
Nov 22, 2000
347
Hi,

I have a dynamic listbox that's populated from a database. My problem is, one of the options is way too long (takes about half of the page). Is it possible to have it written out on 2 lines?

Does anybody have a suggestion so that it looks good?

Thanks,

Marie
 
>> Is it possible to have it written out on 2 lines?

nope

>> suggestion so that it looks good?

well that's relative yes? since you can't display the whole thing it sort of doesn't matter how you truncate the string but your choices are (front, middle, back)

alternatively you could replace the combo box with a HTML solution like nested DIV's or TABLE or something like that.

-pete
 
Guess I'll have to truncate the strings.

Is it possible to change the font size of values in a listbox?
 
yes with css

<select style=&quot;font-size: 7px;&quot; ....>

-pete
 
forget it. found out how...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top