PDA

View Full Version : Indenting in html select


tib
06-28-2005, 04:52 PM
Hi I want to be able to indent some of my entries in my html select like the following

Top1
sub
sub2
top2
sub1
sub2
.
.
.

Can this be done? I have the spaces in the database but they don't display in the select. Thanks for any help

mark87
06-28-2005, 05:56 PM
Substitute spaces for '&nbsp' - eg.

<select>
<option value="1">Option 1</option>
<option value="2">&nbsp&nbsp&nbsp&nbspOption 2</option>
<option value="3">&nbsp&nbsp&nbsp&nbspOption 3</option>
</select>

tib
06-28-2005, 06:37 PM
Hey thanks!!! it worked, I never even thought of that