Xaringan: Question: background-image for title slide from disk

Created on 14 Feb 2018  路  3Comments  路  Source: yihui/xaringan

Hello,

How do I insert a background-image in my custom.css under .title-slide which references a png file from my disk, instead of using url() to reference an image online?

Most helpful comment

You can specify a local path in the url. For example

background-image: url('images/image.png');

All 3 comments

You can specify a local path in the url. For example

background-image: url('images/image.png');

From you question it sounds like you already know, but for the sake of clarity, make sure you include the code @ekstroem mentions inside of title-slide...

.title-slide {
  background-image: url(https://media1.britannica.com/eb-media/55/174255-004-9A4971E9.jpg);
}

Ah, lovely. TY. Closing my Q.

Was this page helpful?
0 / 5 - 0 ratings