Products

Products
Viewing By Entry / Main
January 18, 2008

cflayout and CSS styles

I could not find any information on how to use an actual CSS class in a cflayout or cflayoutarea attribute like so:

<style>
.layoutStyle{..}
</style>
<cflayout class="layoutStyle">...</cflayout>

I guess it's simply not possible, but I have a work around, sort of. Not really using a css file but basically declaring the class name as a variable equal to the style attributes desired. Then use that variable in the layout style attribute:

<cfset layoutStyle = "width:800; text-align:left;">
<cflayout style=#layoutStyle#>...</cflayout>

An alternative is to set the styles in ini or txt files and use them externally, which is the point of css to begin with, external style sheets.

Comments

Very cognitively


http://www.game4power.com
http://www.wowgoldone.com


I have enough information regarding cascading style sheet and its advance features yet you have posts does help.



Copyright © 2005-2006 Clint Willard. All rights reserved.
Aura skin for Clint Willard's BlogCFC inspired by Brooks Bilson's Bolg.
All trademarks property of their owners.