All,
I cannot understand why the image is not displayed in the background of my document, generated within RStudio
(via the knitr
button, to generate a slidy
html document).
here is my reproducible example:
test.Rmd
---
title: "test"
output:
slidy_presentation:
css: testcustom.css
font_adjustment: -3
---
## Introduction {#intro}
### Hello World!
This works: background-color: #6495ed;
This does not work: background-image: url(pic/Presentation.jpg);
testcustom.css
#intro {
background-image: url(pic/Presentation.png);
background-color: #6495ed;
}
image is the following: http://displaynote.com/wp-content/uploads/2015/02/Presentation.jpg, located in pic/Presentation.jpg
How can I fix this problem? It neither works in IE
nor in Chrome
.
Many thanks for your help!