Adobe COLDFUSION 9 Manual page 815

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
Styling layouts
The
and
cflayout
cflayoutarea
the layout container, and sets default values for many, but not all, styles for the layout areas. For example, the color and
background color styles of the
tag
style sets only the color of the border around the entire layout, not the layout area borders. The
cflayout
border
tag
attribute controls the style of the individual layout area and overrides any corresponding
cflayoutarea
style
settings in the
tag.
cflayout
As is often the case with complex controls, the effects of layout and layout area styles can vary. For example, do not
often specify the
style in the
height
The following simple example shows a tab layout with two layout areas. The layout has a light pink background color,
and the layout areas have three pixel-wide red borders.:
<cflayout name="layout1" type="tab" style="background-color:##FFCCCC">
<cflayoutarea title="area1" style="border:3px solid red">
Layout area 1
</cflayoutarea>
<cflayoutarea title="area1" style="border:3px solid red">
Layout area 2
</cflayoutarea>
</cflayout>
Using pods
The cfpod control creates a content region with a title bar and surrounding border. You can define the pod content in
the
tag body, or you can use a bind expression to dynamically get the content from a URL. Pods are frequently
cfpod
used for portlets in a web portal interface and for similar displays that are divided into independent, possibly
interactive, regions.
You control the pod header style and body style independently by specifying CSS style properties in the
and
attributes.
bodyStyle
The following example uses multiple pods inside
current time from a CFML page. The contents of the other pods is defined in the
uses the
and
headerStyle
bodyStyle
The cfpodExample.cfm application has the following code:
tags have
attributes. The
style
tag set the default text and background colors in the layout areas. But the
cflayout
tag; instead, specify height styles on each of the
cflayout
cflayoutarea
attributes to control the appearance.
Last updated 8/5/2010
tag
attribute controls the style of
cflayout
style
tags to create a simple portal. The time pod gets the
bodies for simplicity. Each pod
cfpod
810
tags.
cflayoutarea
headerStyle

Advertisement

Table of Contents
loading

Table of Contents