Data-Driven CSS Style Sheets Using ColdFusion

<!---
	Param the URL theme. This will determine the look and
	feel of the style sheet to generate.
--->
<cfparam name="URL.theme" type="numeric" default="1" />
 
 
<!--- Tell the client (browser) that this a style sheet. --->
<cfcontent type="text/css" />
 
 
<!--- Figure out which style sheet to generate. --->
<cfswitch expression="#URL.theme#">
	<cfcase value="1">
 
		<!--- The default theme. No override. --->
 
	</cfcase>
	<cfcase value="2">
 
		body {
			font-family: arial ;
			}
 
		strong {
			background-color: gold ;
			}
 
		em {
			color: #FF0000 ;
			}
 
		ul {
			list-style-type: circle ;
			}
 
		ol {
			list-style-type: upper-roman ;
			}
 
	</cfcase>
	<cfcase value="3">
 
		body {
			background-color: #000033 ;
			color: #FFFFFF ;
			font-family: monospace ;
			font-size: 100% ;
			}
 
		strong {
			background-color: #FFFFFF ;
			color: #333333 ;
			}
 
		em {
			border-bottom: 1px dotted #FFFFFF ;
			}
 
		a {
			color: gold ;
			}
 
	</cfcase>
</cfswitch>

For Cut-and-Paste