On 5/10/01 1:27 PM Scott Weikert wrote:

> <LINK REL="StyleSheet" TYPE="text/css" HREF="style.cfm">
> 
> I've had some hassles trying to link the page like this... it doesn't seem
> to properly execute the CF code within.
> 
> Anyone out there tried to do this same thing, and succeeded? Input would be
> most welcome.

Two suggestions:

1. Make a new style sheet for each option, and use:

<cfoutput>
<LINK REL="Style Sheet" TYPE="text/css" HREF="#attributes.stylesheet#.cfm">
</cfoutput>

Name you style sheets stylegreen.css, styleblue.css, etc.

OR

2. Add a mapping in IIS if you can to have CF parse .css files. I've never
done this, but conceivably it could work... If you have that much control of
your environment.

Obviously option two would be preferable so you don't have to maintain
multiple style sheets.

- Sean
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to