Hmmm... I keep getting the feedback from firebug
that "there are no rules for this stylesheet"...

On the index.cfm, I have:

<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link type="text/css" rel="stylesheet"
href="styles/bigPhoto/css/bigPhoto.css.cfm" />


On bigPhoto_ThomasHill.css.cfm (an include on the actual css page), I have:

<cfset initialBigPhoto = 'bigPhotoBGWaterBoy.png' />


On bigPhoto.css.cfm, I have:

<cfcontent type="text/css; charset=UTF-8" />

<cfinclude template = "bigPhoto_ThomasHill.css.cfm">
(The site-specific css variables are stored in the
"bigPhoto_ThomasHill.css.cfm" file)

<cfoutput>

        body { background: ##000 url('../styleGraphics/##initialBigPhoto##')
no-repeat center top fixed; }

        etc...

</cfoutput>


The css rules aren't being recognized and, therefore, no style applied.
I tried doing this without the cfinclude, but that didn't help.

What am I missing?



-----Original Message-----
From: Matt Quackenbush [mailto:[email protected]] 
Sent: Thursday, April 14, 2011 1:03 PM
To: cf-talk
Subject: Re: Parsing .css files with CF


Check the header info on the site in question.  Match the charset to
whatever that is.  :-)


On Thu, Apr 14, 2011 at 11:34 AM, Rick Faircloth
<[email protected]>wrote:

>
> so, <cfcontent type="text/css charset=UTF-8"> ?
>
> -----Original Message-----
> From: Matt Quackenbush [mailto:[email protected]]
> Sent: Thursday, April 14, 2011 12:29 PM
> To: cf-talk
> Subject: Re: Parsing .css files with CF
>
>
> You'll probably want to define the charset to match whatever you're using
> in
> your HTML.  I *think* CF defaults to UTF-8.
>
> On Thu, Apr 14, 2011 at 11:21 AM, Rick Faircloth
> <[email protected]>wrote:
>
> >
> > So just use:
> >
> > style.cfm
> > ---------
> >
> > <cfcontent type="text/css" charset=ISO-8859-1">
> > <cfset variables.color = "##fff">
> >
> > <cfoutput>
> >
> >  body { color:#variables.color#; }
> >
> > </cfoutput>
> >
> > Then in calling doc:
> > <link rel="stylesheet" href="style.cfm" text="text/css" />
> >
> > ???
> >
> > Also, I got the "charset=ISO-8859-1" from an example.
> > Is that necessary or important, and why?
> >
> >
> >
> > -----Original Message-----
> > From: John M Bliss [mailto:[email protected]]
> > Sent: Thursday, April 14, 2011 12:05 PM
> > To: cf-talk
> > Subject: Re: Parsing .css files with CF
> >
> >
> > Nah.  Just use .cfm and cfcontent to set the type of the .cfm to .css
and
> > then you can actually call the .cfm where you'd usually call your .css
> file
> > in HTML.  I promise it's easier done than said.  :-)
> >
> > On Thu, Apr 14, 2011 at 11:02 AM, Rick Faircloth
> > <[email protected]>wrote:
> >
> > >
> > > So, is setting up IIS to cause CF to parse
> > > CSS files still the best way to accomplish
> > > using variables in CSS files?
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343727
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to