jimhester / knitrBootstrap

A framework to create bootstrap styled HTML reports from knitr Rmarkdown.
Other
274 stars 61 forks source link

Renders VERY narrow #198

Closed fdepaolis closed 3 years ago

fdepaolis commented 3 years ago

I have a problem when trying to render an HTML document with knitrBootstrap::bootstrap_document: This is the YAML:

output:
  knitrBootstrap::bootstrap_document:
    title: "Title goes here"
    theme: Cosmo
    highlight: Google Code
    theme.chooser: FALSE
    highlight.chooser: FALSE

...the result is a VERY narrow document and I can make it wider...no matter what...have you seen that before? Any hints? Thank you

fdepaolis commented 3 years ago

...I found a solution elsewhere...by including the code below right after the YAML

    ```{css, echo=FALSE}
    body .main-container {
      max-width: 1280px !important;
      width: 1280px !important;
    }
    body {
      max-width: 1280px !important;
    }

I assume this to be a temporary solution...looking forward to receiving any reactions. All the best,
jimhester commented 3 years ago

This is using the bootstrap 3 defaults. I think your workaround is the best solution if you would prefer wider content.

fdepaolis commented 3 years ago

Thank you!!!