rstudio / rmarkdown

Dynamic Documents for R
https://rmarkdown.rstudio.com
GNU General Public License v3.0
2.88k stars 974 forks source link

How to set the background color on a given slide? #250

Closed ignacio82 closed 7 years ago

ignacio82 commented 10 years ago

How can you set the background color on a given slide?

For example:


---
title: "Never put off 'till tomorrow?"
author: "Ignacio Martinez"
date: "09/23/2014"
output:
  ioslides_presentation:
    incremental: yes
    css: ./styles.css
    widescreen: yes
    self_contained: true
    font-import: http://fonts.googleapis.com/css?family=Ubuntu
    font-family: Ubuntu
runtime: shiny

---

# Thomas Jefferson {.background-color: "orange"}

<q>_Never put 'till tomorrow what you can do today_</q>
yihui commented 7 years ago

Unfortunately it is not straightforward for ioslides. #687 was a attempt to address this issue but the author eventually gave up. If you do not want to wait, several other more modern and better maintained libraries can do a much better job in terms of customizing the styles for individual slides. Two examples are revealjs and xaringan.

github-actions[bot] commented 4 years ago

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.