Yonatan Lazar Yonatan Lazar - 1 year ago 125
CSS Question

Override rmarkdown theme in order to change html page width

I'm trying to widen the output of rmarkdown to html. I've been trying this solution with no success (although I'm using the cerulean theme, that should be responsive according to comments). Also tried adding a

element as described here - no effect.

How can I make this work?

Answer Source

Option 1: (may not be compatible with all browsers!)

Try this script:

  $(document).ready(function () {

Option 2:

Add these style definitions directly to your RMarkdown document:

  .main-container {
    max-width: 1200px !important;

Both work for me.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download