Yonatan Lazar Yonatan Lazar - 11 months ago 80
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?


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.