• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

<cfdocumentitem type="footer" > ignores CSS

New Here ,
Feb 07, 2008 Feb 07, 2008

Copy link to clipboard

Copied

Looks like the &lt;cfdocumentitem type=&quot;footer&quot; &gt; tag which is part of &lt;cfdocument&gt; ignores all attempts to style it with CSS.

I can't change the font family, or color.

Any ideas.

I might have to completely re-engineer my product because this tag is so buggy
TOPICS
Advanced techniques

Views

5.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 07, 2008 Feb 07, 2008

Copy link to clipboard

Copied

Is your stylesheet/css file contained within the CFDOCUMENT tag?

I've had similar problems when using this tag, can you provide an example of your code and I'll take a look?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 07, 2008 Feb 07, 2008

Copy link to clipboard

Copied

LATEST
I've pasted the page that creates the PDF.
This is just a demo page that duplicates the problem. I stripped out all the code and content to keep this simple.

The style sheet is included in the cfdoc tag.
Style sheet works for the main content but not the footer which is being forced to a timesnewromanPSMT font which i do not want.


&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot; http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot; http://www.w3.org/1999/xhtml&quot;&gt;

&lt;cfdocument name=&quot;yoda&quot; filename=&quot;MyPDF.PDF&quot; format=&quot;PDF&quot; pagetype=&quot;letter&quot; margintop=&quot;.6&quot; marginbottom=&quot;1&quot; marginright=&quot;.5&quot; marginleft=&quot;.5&quot; orientation=&quot;portrait&quot; unit=&quot;in&quot; encryption=&quot;none&quot; backgroundvisible=&quot;no&quot; overwrite=&quot;yes&quot; fontembed=&quot;no&quot; &gt;

&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&gt;
&lt;title&gt;PDF Creator&lt;/title&gt;

&lt;style type=&quot;text/css&quot;&gt;

body {
background: white;
font-family: Arial, Helvetica, sans-serif;
margin: 0px 0px 0px 8px;
text-align: center;
margin-left: 10px;
font-size: 12px;
}

.FirstPageTitles {
font-family: Arial, Helvetica, sans-serif;
font-size: 36px;
}
.Foot {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
color: Fuchsia;
}
&lt;/style&gt;

&lt;/head&gt;
&lt;body&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;p&gt;
This page should be a PDF with correct fonts&lt;/p&gt;
&lt;p&gt;Fonts should show up as Arial font&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;

&lt;p align=&quot;center&quot; class=&quot;FirstPageTitles&quot;&gt;Career Test Report-(36pt Arial) &lt;/p&gt;
&lt;p align=&quot;center&quot; class=&quot;FirstPageTitles&quot;&gt;PDF Demo&lt;/p&gt;
&lt;h4 align=&quot;center&quot; &gt;Prepared For&lt;/h4&gt;
&lt;p align=&quot;center&quot; &gt;My Best Customer (12 pt Arial) &lt;/p&gt;
&lt;p align=&quot;center&quot; &gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;center&quot; &gt;footer should be Arial 10 pt &lt;/p&gt;
&lt;p align=&quot;center&quot; &gt;scroll down to see footer &lt;/p&gt;

&lt;cfdocumentitem type=&quot;footer&quot; &gt;
&lt;div class = &quot;Foot&quot; align=&quot;right&quot; &gt;&lt;cfoutput&gt;
#cfdocument.currentpagenumber# of #cfdocument.totalpagecount#&lt;/cfoutput&gt; &lt;/div&gt;

&lt;div class = &quot;Foot&quot; align=&quot;center&quot; &gt;Copyright 1998-2008 CareerPlanner.com Inc. All Rights Reserved.&lt;/div&gt;
&lt;/cfdocumentitem&gt;

&lt;/body&gt;
&lt;/html&gt;
&lt;/cfdocument&gt;


&lt;cflocation url=&quot;Start-Demo.cfm&quot; &gt;

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation