I need just a little help with sprites. I am not an expert, but I'm learning, and this it the first time I'm trying to make a sprite show on in the cms block. My sprite is spritesheet.png, an image with social icons on it. I uploaded it in public_html folder for now and I put this cone in my cms block (I had to add spaces after "<" here in my post because otherwise the code wouldn't show up)
<div class="sprite sprite-facebook"></div>
<div class="sprite sprite-google"></div>
<div class="sprite sprite-instagram"></div>
<div class="sprite sprite-pinterest"></div>
<div class="sprite sprite-twitter"></div>
<div class="sprite sprite-youtube"></div>
Then I added this to my styles.css
background-image: url(spritesheet.png);
background-repeat: no-repeat;
display: block;
}
.sprite-etsy {
width: 18px;
height: 18px;
background-position: -5px -5px;
}
.sprite-facebook {
width: 18px;
height: 18px;
background-position: -33px -5px;
}
.sprite-google {
width: 18px;
height: 18px;
background-position: -61px -5px;
}
.sprite-instagram {
width: 18px;
height: 18px;
background-position: -89px -5px;
}
.sprite-pinterest {
width: 18px;
height: 18px;
background-position: -117px -5px;
}
.sprite-twitter {
width: 18px;
height: 18px;
background-position: -145px -5px;
}
.sprite-youtube {
width: 18px;
height: 18px;
background-position: -173px -5px;
}
All this was generated by a website that helps with making sprites, so it should be correct, but I still don't see the images. I see the empty CMS block though. Could you please help me understand what am I missing? Thank you!