MartineJ
MartineJ

Reputation: 795

Change background color R posterdown

How can I change the default dark green in posterdown::posterdown_html to another color? i tried placing title_bgcol: "red" in the YAML, which did not do anything. On the other hand title_textcol: "red" does work, but the text color was oke as it was. Thank you.

Upvotes: 1

Views: 402

Answers (1)

Daniel_j_iii
Daniel_j_iii

Reputation: 3242

This can be solved with CSS inside the Rmarkdown file, I had to use 2 divs to be able to cover the entire page. You could also use a separate .css file if you'd like, just have to include that in your YAML

---
title: "hello"
output: 
  posterdown::posterdown_html
---


```{css, echo=FALSE}
div.title_container{
   background-color: red;
}

div.logo_left{
  background-color: red;
}

```

enter image description here

Upvotes: 2

Related Questions