title: Using pagedown to convert from HTML to pdf in R
body: <p>Its my first time using pagedown.</p>
  
  <p>Could you help me? </p>
  
  <p>This is my .Rmd code:</p>
  
  <pre><code>---
  title: "Table"
  output:
    html_document:
      css: "test.css"
  ---
  
  ```{r}
  library(knitr)
  data(iris)
  kable(iris)
  ```  
  </code></pre>
  
  <p>This is my .css file:</p>
  
  <pre><code>.main-container { 
       max-width: 1600px !important;
   } 
   tr:nth-child(even) {
       background-color: #f2f2f2;
   }
   th {
       background-color: #FF6319;
       color: white;
       font-size: 12px;
   }
   tbody {
       font-size: 12px;
   }
   hr {
       page-break-after: always;
   }
  </code></pre>
  
  <p>When i set the command <code>pagedown::chrome_print('C:/Users/user/Downloads/myfile.html')</code> the pdf output is created but it doesn mantain the css style.</p>
  
  <p>What am I missing?</p>
  
  <p>Any help?</p>
  
  <p>Thanks!</p>