Skip to content Skip to sidebar Skip to footer

How To Align Left Html_document Rendered By Rmarkdown?

Since I am not familiar with css I was wondering if there is a simple way to 'tell' my rmarkdown page to left align when rendering an HTML-page? Something like this: --- title: 'M

Solution 1:

Maybe something like this:

---title:"My html-page"output:html_document---<style>body {
    position:absolute;left:0px;}
</style>

Solution 2:

If you'd actually like some basic styles (i.e. not my theme:null suggestion), grab Skeleton and put normalize.css & skeleton.css in the same directory as your Rmd file. Then you can do:

---title:"Title"output:html_document:theme:nullcss:-normalize.css-skeleton.csskeep_md:truemd_document:variant:markdown_github---
OneTwo```{r}print("three")```

which will result in:

You can add a third - my.css if you want to customize it a bit more.

enter image description here

Post a Comment for "How To Align Left Html_document Rendered By Rmarkdown?"