User Guide

Table Of Contents
Setting styles and skins in Flash forms 701
Flash supports many, but not all, standard CSS styles. ColdFusion MX Flash forms only support
applying specific CSS style specifications to individual CFML tags and their corresponding Flash
controls and groups. You cannot use an external style sheet or define a document-level style sheet,
as you can for HTML format forms.
Flash form style specification syntax
To specify a Flash style, use the following format:
style="stylename1: value; stylename2: value; ..."
For example, the following code specifies three style values for a text input control:
<cfinput type="text" name="text2" label="Last"
style="borderSyle:inset; fontSize:12; backgroundColor:##FFEEFF">
About Flash form style value formats
Style properties can be Boolean values, strings, numbers, or arrays of these values. The following
sections describe the formats for length, time, and color values.
Length format
You specify styles that take length or dimension values, including font sizes, in pixels.
The
fontSize style property lets you use a set of keywords in addition to numbered units. You
can use the following keywords when you set the
fontSize style property. The exact sizes are
defined by the client browser.
xx-small
x-small
small
medium
large
x-large
xx-large
The following
cfinput tag uses the style attribute with a fontSize keyword to specify the size
of the text in the input box:
<cfinput type="text" name="text1" style="fontSize:X-large" label="Name">
Time format
You specify styles that take time values, such as the
openDuration style that specifies how fast an
accordion pleat opens, in milliseconds. The following example shows an
accordion tag that takes
one-half second to change between accordion pleats:
<cfformgroup type="accordion" height="260" style="openDuration: 500">