0 votes
by (2k points)
retagged by
tw-story[tags~="Portada"] { background-image:url("https://solomontwine.yolasite.com/resources/Portada.jpg"); background-size:contain; } This is how I put my images in my stylesheet

1 Answer

0 votes
by (360 points)

Wouldn't it be simpler to do it like this:
 

body {
 background-image: url("paper.gif");
 background-color: #cccccc;
}

I am just wondering, I am not sure :3

by (6.2k points)
using 'body' affects every passage in the story. tw-story[tags="portada"] only affects passages with the 'portada' tag assigned to it, so you can have multiple CSSes for passages.
...