Multiple background image problem

Can you explain please why my second background image doesn’t show up?
this is my CSS:

background-image: url(“https://s3-us-west-
boom_copy.svg”), url(“https://s3-us-west-”);
background-repeat: no-repeat, no-repeat;
background-size: cover, 20%;
background-position: center center ,left top;
height: 100%;

It does appear, but it is behind the first one. At least this is what I saw when I pasted your code in codepen! :slight_smile:

Try reversing the images (put the second first) and you’ll see they’ll appear.

But usually this is not what you should do. Create an inner tag (a div for example) and add the 2nd background image to it.

1 Like

Thanks! If you don’t mind, can you show an example of what i should usually do?


    background-image: url("");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    height: 100%;

div.container {
    background-image: url("");
    background-repeat: no-repeat;
    background-size: 20%;
    background-position: left top;
    height: 100%;

And the HTML would look like:

<head> ... head stuff here </head>

    <div class="container">
        Other things here...


This would be the boilerplate, but you can adjust it to fit your needs :slight_smile: