<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CSS Styles , HTML, PDF and SAS Report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/CSS-Styles-HTML-PDF-and-SAS-Report/m-p/145400#M11390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cynthia!&lt;/P&gt;&lt;P&gt;Thanks for your reply. My gain by using an external CSS file is re-use of already&lt;/P&gt;&lt;P&gt;existing assets within the organization. I try to avoid re-capsuling into SAS.&lt;/P&gt;&lt;P&gt;When I can use the external CSS file within SAS than that is super great and I am happy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for pointing out that the PDF conversion converts my relative pixel size to actual PT sizes.&lt;/P&gt;&lt;P&gt;That explains the mess up in the PDF output. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore. You are right. I use the SAME CSS file for PDF and HTML. That is really just for test purposes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Feb 2015 09:13:42 GMT</pubDate>
    <dc:creator>metallon</dc:creator>
    <dc:date>2015-02-09T09:13:42Z</dc:date>
    <item>
      <title>CSS Styles , HTML, PDF and SAS Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/CSS-Styles-HTML-PDF-and-SAS-Report/m-p/145396#M11386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the following SAS code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options nodate pageno=1 linesize=80 pagesize=40 obs=10;&lt;/P&gt;&lt;P&gt;proc template;&lt;/P&gt;&lt;P&gt;/*HTML Style*/&lt;/P&gt;&lt;P&gt;define style styles.mycssstyle;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import "H:\SAS Makro\BVL_SASStyle_29012015_v1.css";&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*PDF Style*/&lt;/P&gt;&lt;P&gt;define style styles.mycssstyleprinter; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parent=styles.mycssstyle;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import "H:\SAS Makro\BVL_SASStyle_29012015_v1.css" print;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*HTML*/&lt;/P&gt;&lt;P&gt;ods html file="H:\SAS Output Test\css.html" style=styles.mycssstyle;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*PDF*/&lt;/P&gt;&lt;P&gt;ods pdf file="H:\SAS Output Test\css.pdf" style=styles.mycssstyleprinter;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*SAS*/&lt;/P&gt;&lt;P&gt;proc contents data=sashelp.class; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods _all_ close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CSS is attached.&lt;/P&gt;&lt;P&gt;Two question.&lt;/P&gt;&lt;P&gt;1. my PDF output is totally odd, its 80 pages and massive letters, unreadable. why is that?&lt;/P&gt;&lt;P&gt;2. the SAS Report that the EG generated along the HTML and PDF is not styled, why is that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be great if someone can share some insight. Its the first time I am using CSS together with SAS. I like the idea&lt;/P&gt;&lt;P&gt;I just need to learn how far it can be used to style SAS outputs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 10:04:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/CSS-Styles-HTML-PDF-and-SAS-Report/m-p/145396#M11386</guid>
      <dc:creator>metallon</dc:creator>
      <dc:date>2015-01-30T10:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: CSS Styles , HTML, PDF and SAS Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/CSS-Styles-HTML-PDF-and-SAS-Report/m-p/145397#M11387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if it matters, but Isn't there a cssstyle= rather than style= option for ODS HTML?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 11:55:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/CSS-Styles-HTML-PDF-and-SAS-Report/m-p/145397#M11387</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-01-30T11:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: CSS Styles , HTML, PDF and SAS Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/CSS-Styles-HTML-PDF-and-SAS-Report/m-p/145398#M11388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;Thanks for you reply. The HTML is the only output which is actually styled correctly &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; dont want to change that.&lt;/P&gt;&lt;P&gt;Its the SAS Report that is not styled and the PDF which is really wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 15:14:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/CSS-Styles-HTML-PDF-and-SAS-Report/m-p/145398#M11388</guid>
      <dc:creator>metallon</dc:creator>
      <dc:date>2015-01-30T15:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: CSS Styles , HTML, PDF and SAS Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/CSS-Styles-HTML-PDF-and-SAS-Report/m-p/145399#M11389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; So the HTML could look OK because you chose relative numbers for font sizes which is totally fine for HTML, but forces PDF to do a conversion from relative sizes to absolute PT sizes. I do not believe that the SAS Report XML - -such as that used by Web Report student or Enterprise Guide will use your all your CSS. For example, if you want to use a custom CSS file with Web Report Studio (and SAS Report format), you have to define your CSS file in the XML used by Web Report Studio. Also, it looks like you are importing the SAME CSS file into 1 style for PDF and another style for HTML and, granted, you are using a media type for the PDF style, but still, given that you've got a PARENT= and an IMPORT, I'm not sure how conflicting selectors would resolve. This seems a better question for Tech Support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; And, Reeza is correct, you could use your CSS file directly with either HTML, RTF or PDF by just specifying the CSSSTYLE= option, so I'm not sure you gain anything by importing the CSS file into a template.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 01:20:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/CSS-Styles-HTML-PDF-and-SAS-Report/m-p/145399#M11389</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-01-31T01:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: CSS Styles , HTML, PDF and SAS Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/CSS-Styles-HTML-PDF-and-SAS-Report/m-p/145400#M11390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cynthia!&lt;/P&gt;&lt;P&gt;Thanks for your reply. My gain by using an external CSS file is re-use of already&lt;/P&gt;&lt;P&gt;existing assets within the organization. I try to avoid re-capsuling into SAS.&lt;/P&gt;&lt;P&gt;When I can use the external CSS file within SAS than that is super great and I am happy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for pointing out that the PDF conversion converts my relative pixel size to actual PT sizes.&lt;/P&gt;&lt;P&gt;That explains the mess up in the PDF output. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore. You are right. I use the SAME CSS file for PDF and HTML. That is really just for test purposes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 09:13:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/CSS-Styles-HTML-PDF-and-SAS-Report/m-p/145400#M11390</guid>
      <dc:creator>metallon</dc:creator>
      <dc:date>2015-02-09T09:13:42Z</dc:date>
    </item>
  </channel>
</rss>

