Is it possible to format text inside the html list box?

Argo

Lifer
Apr 8, 2000
10,045
0
0
I want to make certain entries bold. Others need to be slightly idented. Looks like list control ignores all text formatting, as well as white space. Is there a work-around?
 

Argo

Lifer
Apr 8, 2000
10,045
0
0
Originally posted by: notfred
CSS

How though? Wouldn't the entire list control pick up css settings? Or can I specify css class within the <option> tag???
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
oh... yeah, hmm... different CSS for different options. I dunno, see if you can apply it to an "option" tag. I never tried that before, though. I was thinknig of applying it to the entire list box.
 

Argo

Lifer
Apr 8, 2000
10,045
0
0
Originally posted by: notfred
oh... yeah, hmm... different CSS for different options. I dunno, see if you can apply it to an "option" tag. I never tried that before, though. I was thinknig of applying it to the entire list box.

No go. It ignores it.
 

MonkeyK

Golden Member
May 27, 2001
1,396
8
81
No. All text in the list box uses the same display characteristics. Your best bet is to distinguish with CAPS, prefixing with some other character, or by breaking sections up with a string of hyphens.
 

Argo

Lifer
Apr 8, 2000
10,045
0
0
Originally posted by: BingBongWongFooey
It depends on the browser. Some browsers let you format various input widgets more than others.

Yeah? Any way I can get this done in IE? If anybody can point me in the right direction I'd appreciate that. I wouldn't mind doing some research if I had to. I tried google but got back complete garbage.