Answers.Body: <p>You can use the <code>{% includeCssFile %}</code>, you just need to make sure and wrap all of the styles in the print stylesheet with <code>@media only print { }</code> or <code>@media print { }</code></p>
  
  <pre><code>@media only print {
     nav {
         display:none;
     }
     p {
         color:#000000;
     }
     .etc {
     }
  }
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-09-27T16:18:41.640Z
Answers.LastActivityDate: 2014-09-27T16:18:41.640Z
Answers.UserDisplayName: Douglas McDonald
Answers.Body: <p>I don't think so with <code>{% includeCssFile %}</code>, but you can use <code>{% includeCss %}</code> and have it inline.  Something like:</p>
  
  <pre><code>{% includeCss('
      @media print {
          p {
              font-size: 20px;
              color: red;
          }
      }
  ') %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-09-27T15:53:22.697Z
Answers.Text: You can't just link to the print style sheet using `{% includeCssFile %}` and wrap the styles in `@media only print { myprintstyle1{...} }`?
Answers.UserDisplayName: Douglas McDonald
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-09-27T18:27:28.657Z
Answers.Text: Yeah, there's that too.
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-09-27T04:26:56.327Z
Answers.LastActivityDate: 2014-09-27T04:26:56.327Z
Answers.UserDisplayName: Brad Bell
Body: <p><code>{% includeCssFile %}</code> can be used to add "regular" css files in the head tag. Is it possible to use this tag for print media?</p>
  
Tags: <css>
Title: Is there a way to use the includeCssFile tag to include a css file for print media?
ThreadText: # Is there a way to use the includeCssFile tag to include a css file for print media?
  
  (Asked by: username_0 on 2014-09-27)
  
  `{% includeCssFile %}` can be used to add "regular" css files in the head tag. Is it possible to use this tag for print media?
  
  **Tags:** css
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2014-09-27. Score: 3 | Accepted answer
  
  You can use the `{% includeCssFile %}`, you just need to make sure and wrap all of the styles in the print stylesheet with `@media only print { }` or `@media print { }`
  
  ```
  @media only print {
     nav {
         display:none;
     }
     p {
         color:#000000;
     }
     .etc {
     }
  }
  
  ```
  
  
  ---
  
  ### Answer by username_2 on 2014-09-27. Score: 1
  
  I don't think so with `{% includeCssFile %}`, but you can use `{% includeCss %}` and have it inline. Something like:
  
  ```
  {% includeCss('
      @media print {
          p {
              font-size: 20px;
              color: red;
          }
      }
  ') %}
  
  ```
  
  > **Comments:**
  > **username_1**: You can't just link to the print style sheet using `{% includeCssFile %}` and wrap the styles in `@media only print { myprintstyle1{...} }`?  
  > **username_2**: Yeah, there's that too.  
  
  ---
  
  