Sizing elements in a Flash form is something of an art, rather than a science. As a general rule, if you don't specify the height
and width
attributes, Flash tends to do a good job of laying out the form. However, keep in mind the following considerations:
height
and width
attributes in the cfform
tag, Flash reserves the full dimensions of the visible browser window, if the form is not in a table, or the table cell, if the form is in a table, even if they are not required for the form contents. Any HTML output that precedes or follows the form causes the output page to exceed the size of the browser window.
In general, it is best to use the following process when you design your Flash form.
height
and width
attributes on the form or its child tags. Run the form and examine the results to determine height and width values to use.
height
and width
attributes in the cfform
tag for the desired dimensions of the form. You can specify absolute pixel values, or percentage values relative to the size of the containing window.
height
or width
attributes on individual tags. These values must be in pixels.