This isn't pretty, but it works for me
    http://205.150.218.7/test/tsel.cfm:

(assumes max length 10 chars for any column)

<!--- dummy test columns --->
<cfset ls1="wwwwww,iii,jklmno">
<cfset ls2="ab,xxxx,jklmno">
<cfset ls3="aa,bbbb,cccccccc">

<cfset sp=repeatString(" ",10)>

<form action="" method="post">
<select name="x" style="font:10pt Andale Mono">
<cfloop from=1 to=#Listlen(ls1)# index="x">
<cfoutput>
<option value="#x#">#replace(left(listgetAt(ls1,x) & sp,10)," ","&nbsp;","ALL")#
          #replace(left(listgetAt(ls2,x) & sp,10)," ","&nbsp;","ALL")#
          #listgetAt(ls3,x)#</cfoutput>
</cfloop>
</select>
</form>

  ----- Original Message -----
  From: Rick Mason
  To: CF-Talk
  Sent: Wednesday, September 29, 2004 2:51 PM
  Subject: Re: Order in multi-column select box

  Michael,

  I really thought that a mono-spaced font would fix it - but it
  doesn't.  I can add a dash (instead of a space) in my code and count
  the total characters and they're equal but the columns still don't
  line up, not even close ;<(.

  Surely someone has solved this problem before ?

  Rick Mason
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to