Jim Wright wrote: >> <head> >> <link rel="stylesheet" type="text/css" href="css/makePDF.css" /> >> </head>
OK, so I'm trying it like this now: If I remove the CFDOCUMENT tag, the file renders exactly the way I want. Put it back in, I get a page of gibberish. <cfquery name="makePDF" datasource="#datasource#" username="#username#" password="#password#"> Select * FROM tmbCOLLECTIONS WHERE collection_id = '#url.pdfID#' </cfquery> <cfdocument format="pdf"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <style type="text/css"> <!-- body { font-family: Verdana, Arial, Helvetica, sans-serif; text-align: center; } #PDFpage { width: 544px; margin: 0; text-align: left;} #PDFCARD { width: 136px; height: 170px; margin: 0; float: left; font-size: 9px; background: url(img/pdfCARD.gif) left top no-repeat; } #pdfCARDCONTAINER { width: 116px; margin: 0 12px 0 2px; padding: 0 0 0 4px; float: left; text-align: center; } #PDFCARD #cardTOP { width: 100%; height: 17px; padding: 1px 0 0 0; margin: 0; color: #FFFFFF; font-size: 10px; text-align: center; } #PDFCARD #prvNAME { width: 100%; height: 41px; padding: 9px 0 0 0; } #pdfCARD #prvAMNT { width: 100%; height: 15px; padding: 0; } #PDFCARD #prvTYPE { width: 100%; height: 25px; padding: 0; } #PDFCARD #prvINDUS { width: 100%; height: 31px; padding: 0; } #pdfCARD #prvDATE { width: 100%; height: 15px; text-align: center; padding: 0 8px; } --> </style> </head> <body> <div id="PDFpage"> <img src="http://www.MYSITE.com/imgPDF/pdfHEADER.gif" width="544" height="200" /> <cfoutput query="makePDF"> <div id="PDFCARD"> <div id="pdfCARDCONTAINER"> <div id="cardTOP"><cfif makePDF.pending EQ "pending">Pending</cfif></div> <div id="prvNAME">#makePDF.dsp_name#</div> <div id="prvAMNT">#makePDF.dsp_amount# #makePDF.dsp_millthou#</div> <div id="prvTYPE">#makePDF.deal_type#</div> <div id="prvINDUS">#makePDF.dsp_industry#</div> <div id="prvDATE"> <cfif (makePDF.showDAY EQ "n" or makePDF.showDAY EQ "y") and makePDF.showMONTH EQ "n">#dateformat(makePDF.dsp_closedate, 'yyyy')#</cfif> <cfif makePDF.showDAY EQ "n" and makePDF.showMONTH EQ "y">#dateformat(makePDF.dsp_closedate, 'mmmm yyyy')#</cfif> <cfif makePDF.showDAY EQ "y" and makePDF.showMONTH EQ "y">#dateformat(makePDF.dsp_closedate, 'mmmm dd, yyyy')#</cfif> </div> </div> </div> </cfoutput></div> </body> </html> </cfdocument> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295014 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4