3 Replies Latest reply: Apr 23, 2012 11:46 PM by BKBK RSS

    css in cfdocument

    kt03

      Hi

      my code below is working fine except the css didn't work if i have scope="row" in report.cfm page.  if  i removed that line, then the front size worked fine, otherwise, it was small.  I always have td scope in the cfm page with css with those style and it worked fine, but don't know if scope has something to do with cfdocument?

       

      thanks

      ========================

      report.cfm

      <cfif form.submit neq "">

      <cfsavecontent vairable="session.report">

      <td scope="row">My Report</td>

      </cfsavecontent>

      #session.report#

      </cfif>

      <a href=pdf.cfm">view pdf</a>

      ==================

      pdf.cfm

      <cfset request.theReport = session.report />

       

      <cfdocument format="pdf" orientation="landscape" marginRight=".5" marginLeft=".5">

      <style>

      body, table, th, td {font: normal normal normal 15px/normal, Arial;

      </style>

      <cfoutput>

      #request.theReport#

      </cfoutput>

      </cfdocument>