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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drop dwon box, text wrapped

Status
Not open for further replies.

JustWondering

Technical User
Jun 28, 2003
57
US
Hi,

1 item in my ddbox is too long and it make the ddbox looks ugly, how can I break it down into 2 lines?

Thanks
 
I found the anser.

I didn't know that I can use <br> inside my option tags.

Thanks
 
I didn't either and can't seem to make that work quite right.
??
have a example?

____________________________________________________
Python????? The other programming language you never thought of!
thread333-584700

onpnt2.gif
 
or did you wnat something like this
<select name=&quot;sel&quot;>
<option> <=======> </option>
<option value=&quot;value <br> one&quot;> value one</option>
</select>
<br>
<script language=&quot;javascript&quot;> document.write(document.frm.sel.options[1].value);</script>

which only effects the output of the value after reference but has no effect to the select appearance

____________________________________________________
Python????? The other programming language you never thought of!
thread333-584700

onpnt2.gif
 
oh, I didn't set the value. I only try to break the Text.

<select name=&quot;ddbox&quot;>
<option selected>Select one</option
<option>Long text item.....<br>.......</option>
</select>

 
but that doesn't work?

I'm just trying to figure out how you did this because I thought it wasn't possible. At least when i test it in IE5.5 and NN7.

what are you viewing it under

____________________________________________________
Python????? The other programming language you never thought of!
thread333-584700

onpnt2.gif
 
Nor can I get it to work in IE6. Odd...

Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
--Douglas Adams
 
Ooops, wrong pc! [ponder]

I upgraded the other one, not this one... Hmm, will test it this evening if I have a chance just to see...

Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
--Douglas Adams
 
I guess thats why I'm not seeing it. Anyhow, at least you know it isn't valid on anything NN browser (gecko) or pre IE6


____________________________________________________
Python????? The other programming language you never thought of!
thread333-584700

onpnt2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top