Thanks!  Its ugly looking to use Courier but it works...

On Wed, Dec 16, 2009 at 5:08 PM, Charlie Griefer
<charlie.grie...@gmail.com>wrote:

>
> You'd need to style the option to use a fixed-width font.
>
> On Wed, Dec 16, 2009 at 2:03 PM, ColdFusion Developer
> <cfdev2...@gmail.com>wrote:
>
> >
> > Tried that as well. Does not line up.
> >
> > Ex:
> >
> >  <option value="1">3M     |   XYZ Corporation</option>
> >  <option value="1">ABCDY  |   AB Corporation of Delaware</option>
> >
> > The first one is 2 characters and 5 spaces
> > The second one if 5 characters and 2 spaces
> >
> > Both equal 7 spaces :-(
> >
> > I am wondering if the is a CSS way to do it.
> >
> > On Wed, Dec 16, 2009 at 4:37 PM, DURETTE, STEVEN J (ATTASIAIT) <
> > sd1...@att.com> wrote:
> >
> > >
> > > Search through the data to get the largest length for the item in the
> > > first column.
> > >
> > > Then when you are doing your loop, do <cfset Variables.myTempFirstCol =
> > > FirstColValue & repeatString("&nbsp", Variables.lenMax -
> > > len(FirstColValue) />
> > >
> > > Then output #Variables.myTempFirstCol#|#Variables.mySecondCol#
> > >
> > > Since the first column will now be a fixed length everything should
> line
> > > up.
> > >
> > > Steve
> > >
> > >
> > > -----Original Message-----
> > > From: ColdFusion Developer [mailto:cfdev2...@gmail.com]
> > > Sent: Wednesday, December 16, 2009 4:29 PM
> > > To: cf-talk
> > > Subject: Two Column Select Box?
> > >
> > >
> > > Anyone develop a selectbox that shows two columns of data but only one
> > > value?
> > >
> > > Example:
> > >
> > > <option value="1">XYZ      |   XYZ Corporation</option>
> > >  <option value="1">ABCD   |   AB Corporation of Delaware</option>
> > >
> > >
> > > Goal is to still have the two columns aligned as well.
> > >
> > > TIA!
> > >
> > >
> > >
> > >
> > >
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329199
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to