Groups | Blog | Home
all groups > coldfusion flash integration > april 2006 >

coldfusion flash integration : New lines in labels?



seona
4/26/2006 4:36:58 AM
When creating a Flash Form, is it possible to break the contents of a label
onto two different lines? For example, I have a set of radio buttons along the
lines of:
<cfinput type="radio" name="listType" id="listType" label="6 months ($100.00)">

I would like to display the price on a seperate line to the number of months.
Is this possible? I've tried adding in HTML breaks and \n and anything else I
could think of, and it just prints them.

Cheers.
drforbin1970
4/28/2006 5:02:10 PM
This is the closest I could get for now. You insert a carriage return where you
want the text to break. But, the top of the label aligns to the top of the
input box, so the label text is slightly pushed down. I've tried numerous ways
to modify this behavior but none have worked. You could increase height of
input box and make label text smaller to adjust. Hope this helps.

<cfform name="myform" format="flash" skin="haloOrange"
style="background-color:##ffffcc;" >
<cfformgroup type="vbox" style="indicatorGap:2px;backgroundColor:##eee8aa;">
<cfinput labelPlacement="right" style="fontSize:12px;borderStyle:none;"
label="6 months#CHR(13)#($100.00)" type="text" name="x" size="10"><br>
</cfformgroup>
</cfform>
AddThis Social Bookmark Button