0

I'm trying to add a fullscreen image to the title page an Rstudio presentation. I followed the advice from this link.

<style>
.section .reveal h1 {
   color: darkred;
   font-size: 1.5em;
   text-align: center;
}

.section .reveal .state-background {
    background: url(fake.png) ;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

</style>

Text
========================================================
width: 2000
height: 900
author:
date: 
autosize: true
incremental: true

<center> <font color = "darkgreen">Text</font> </center>

<center>
<small> 
<font color = "white", size="5.5">
 Text
</font> 
</small>
</center>

In Rstudio's viewer everything looks fine:

enter image description here

But in firefox, safari, and chrome I get no background

enter image description here

Any ideas? It appears .rpres is still in heavy development -many bugs, etc.

Community
  • 1
  • 1
Cyrus Mohammadian
  • 4,982
  • 6
  • 33
  • 62

0 Answers0