If you are trying to dynamically assign a style sheet for each page, you
could do the following:
<html>
<head>
<title>Title</title>
<link rel="stylesheet" href="includes/css/styles.cfm" type="text/css">
</head>
<body>
..
</body>
</html>
Them, in your styles.cfm page, you could have:
<cfsetting enablecfoutputonly="yes">
<!--- --------------------------- --->
<!--- PAGE: styles.cfm ---------- --->
<!--- --------------------------- --->
<cfswitch expression="#CGI.SCRIPT_NAME#">
<cfcase value="/index.cfm">
<cfoutput>
body { font-family: Verdana; font-size: 11px; }
input { font-family: Arial; font-size: 12px; color:
#333333; }
<cfoutput>
</cfcase>
...
</cfswitch>
<cfsetting enablecfoutputonly="no">
NOT TESTED, but it should work. HTH
-----Original Message-----
From: Mark Leder [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 6:24 PM
To: CF-Talk
Subject: Attaching CSS style sheet
How does one call a CSS from the application.cfm file. I've
tried
the following two methods with no effect:
1) <LINK rel="stylesheet" href="/css/ifma1.css" type="text/css">
2) <cfinclude template = "css/ifma1.css">
The Css directory is under the application.cfm file.
Thanks for your help.
Mark
--
Mark Leder, [EMAIL PROTECTED] on 02/28/2002
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists