Adding spaces to a ListItem

L

Larry Searing

I would like to add spaces to a ListBox' items. When the
list arrives at the client, all spaces are removed. If I
put   in the text, it displays as  . However,
in a plain HTML <select> control, &nbsp; can be used in
each <option> to provide extra spaces.

I tried the HtmlSelect control but it works the same and
uses ListItems just like the ListBox does.

Is there a way to do this with a ListBox?

Larry
 
L

Larry Searing

The initial post used the HTML tags. This should remedy
that, I hope.

I would like to add spaces to a ListBox' items. When the
list arrives at the client, all spaces are removed. If I
put &amp;nbsp; in the text, it displays as &amp;nbsp;.

However,
in a plain HTML select control, &amp;nbsp; can be used
between
each option tag to provide extra spaces.

I tried the HtmlSelect control but it works the same and
uses ListItems just like the ListBox does.

Is there a way to do this with a ListBox?

Larry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,227
Latest member
Daniella65

Latest Threads

Top