<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: CFDocument and CSS Hell</title>
	<atom:link href="http://www.thecrumb.com/2007/08/16/cfdocument-and-css-hell/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thecrumb.com/2007/08/16/cfdocument-and-css-hell/</link>
	<description>ColdFusion, Ant, jQuery and other geeky stuff with the occasional motorcycle post.</description>
	<pubDate>Thu, 28 Aug 2008 09:20:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Julian Halliwell</title>
		<link>http://www.thecrumb.com/2007/08/16/cfdocument-and-css-hell/#comment-3415</link>
		<dc:creator>Julian Halliwell</dc:creator>
		<pubDate>Mon, 20 Aug 2007 07:52:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecrumb.com/2007/08/16/cfdocument-and-css-hell/#comment-3415</guid>
		<description>Jim, try using the file protocol with a file system path to the stylesheet:

[link rel=â€stylesheetâ€ type=â€text/cssâ€ href=â€file:///#expandPath(myCssDirectory)#docstyles.cssâ€]

Note the 3 slashes, not 2. This is vital.

Also, my understanding is that only html 4.0 is supported in cfdocument (ie not xhtml).</description>
		<content:encoded><![CDATA[<p>Jim, try using the file protocol with a file system path to the stylesheet:</p>
<p>[link rel=â€stylesheetâ€ type=â€text/cssâ€ href=â€file:///#expandPath(myCssDirectory)#docstyles.cssâ€]</p>
<p>Note the 3 slashes, not 2. This is vital.</p>
<p>Also, my understanding is that only html 4.0 is supported in cfdocument (ie not xhtml).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://www.thecrumb.com/2007/08/16/cfdocument-and-css-hell/#comment-3413</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Fri, 17 Aug 2007 14:01:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecrumb.com/2007/08/16/cfdocument-and-css-hell/#comment-3413</guid>
		<description>OK - FWIW - I get the same behavior with @import.  I still have to include it within each cfdocumentitem, etc  - no different than using link...</description>
		<content:encoded><![CDATA[<p>OK - FWIW - I get the same behavior with @import.  I still have to include it within each cfdocumentitem, etc  - no different than using link&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://www.thecrumb.com/2007/08/16/cfdocument-and-css-hell/#comment-3412</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Fri, 17 Aug 2007 12:55:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecrumb.com/2007/08/16/cfdocument-and-css-hell/#comment-3412</guid>
		<description>Not running CF8 (yet)...  Tony - I'll try using an import vs. a link to call my CSS.   I've updated the post above with my final solution - and it seems to work OK.  And FWIW - none of my cfincluded documents include any doctype, head/body, etc...</description>
		<content:encoded><![CDATA[<p>Not running CF8 (yet)&#8230;  Tony - I&#8217;ll try using an import vs. a link to call my CSS.   I&#8217;ve updated the post above with my final solution - and it seems to work OK.  And FWIW - none of my cfincluded documents include any doctype, head/body, etc&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony Petruzzi</title>
		<link>http://www.thecrumb.com/2007/08/16/cfdocument-and-css-hell/#comment-3411</link>
		<dc:creator>Tony Petruzzi</dc:creator>
		<pubDate>Fri, 17 Aug 2007 03:10:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecrumb.com/2007/08/16/cfdocument-and-css-hell/#comment-3411</guid>
		<description>First off Jim is correct, you need to have a fully valid HTML page in order to get cfdocument to even remotely render correctly.

I would recommend (and what I personally do) is create your page statically first with some dummy data and then validate it against the w3c validator. Make sure your using XHTML 1.0 Transitional, that seems it to work best.

The final step is DO NOT use link on inline styles within your cfdocument, you MUST use import to load your css. This was mentioned to me a long time ago and I've always remembered it. It's saved me a bunch of time and frustration.</description>
		<content:encoded><![CDATA[<p>First off Jim is correct, you need to have a fully valid HTML page in order to get cfdocument to even remotely render correctly.</p>
<p>I would recommend (and what I personally do) is create your page statically first with some dummy data and then validate it against the w3c validator. Make sure your using XHTML 1.0 Transitional, that seems it to work best.</p>
<p>The final step is DO NOT use link on inline styles within your cfdocument, you MUST use import to load your css. This was mentioned to me a long time ago and I&#8217;ve always remembered it. It&#8217;s saved me a bunch of time and frustration.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TJ Downes</title>
		<link>http://www.thecrumb.com/2007/08/16/cfdocument-and-css-hell/#comment-3410</link>
		<dc:creator>TJ Downes</dc:creator>
		<pubDate>Fri, 17 Aug 2007 02:27:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecrumb.com/2007/08/16/cfdocument-and-css-hell/#comment-3410</guid>
		<description>agreed. Are you perchance running CF8? I found cfdocument far better with CF8 than 7, even with existing apps.</description>
		<content:encoded><![CDATA[<p>agreed. Are you perchance running CF8? I found cfdocument far better with CF8 than 7, even with existing apps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://www.thecrumb.com/2007/08/16/cfdocument-and-css-hell/#comment-3409</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Thu, 16 Aug 2007 17:27:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecrumb.com/2007/08/16/cfdocument-and-css-hell/#comment-3409</guid>
		<description>The problem is these pages are just content - there is no HTML header/footer, etc.  I could maybe generate a printer friendly index.cfm and call that with CFDcoument - but that seems like extra work I shouldn't have to do.</description>
		<content:encoded><![CDATA[<p>The problem is these pages are just content - there is no HTML header/footer, etc.  I could maybe generate a printer friendly index.cfm and call that with CFDcoument - but that seems like extra work I shouldn&#8217;t have to do.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TJ Downes</title>
		<link>http://www.thecrumb.com/2007/08/16/cfdocument-and-css-hell/#comment-3408</link>
		<dc:creator>TJ Downes</dc:creator>
		<pubDate>Thu, 16 Aug 2007 17:21:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecrumb.com/2007/08/16/cfdocument-and-css-hell/#comment-3408</guid>
		<description>You're not doing anything wrong there. What you're doing is exactly what you should be :)

An alternative is to have a generated HTML page and then use cfhttp to get that page and then use it to create the cfdocument. You might find this produces more reliable results and allows you to use a stylesheet</description>
		<content:encoded><![CDATA[<p>You&#8217;re not doing anything wrong there. What you&#8217;re doing is exactly what you should be <img src='http://www.thecrumb.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>An alternative is to have a generated HTML page and then use cfhttp to get that page and then use it to create the cfdocument. You might find this produces more reliable results and allows you to use a stylesheet</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://www.thecrumb.com/2007/08/16/cfdocument-and-css-hell/#comment-3407</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Thu, 16 Aug 2007 16:37:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecrumb.com/2007/08/16/cfdocument-and-css-hell/#comment-3407</guid>
		<description>What would be nice is if I could do:

cfdocument stylesheet = "print.css"</description>
		<content:encoded><![CDATA[<p>What would be nice is if I could do:</p>
<p>cfdocument stylesheet = &#8220;print.css&#8221;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
