I'm trying to turn this image into a button. It works when grabbing an image via website URL (not my website), but it won't work when using a relative path. The image simply won't appear.
Example:
.my-class {
content: url(http://themedemo.wpeka.com/wp-content/themes/apppress/images/icons/included/color.png);
}
will work, but the following example with the url being a file path with the same downloaded image from the url above:
.my_class {
content: url(/img/color.png);
}
Omitting or using quotes didn't result in any success.
My folders look like: -CSS->styles->general->style.css -color.png
So, for testing purposes, I put color.png and the CSS folder within the same level of the project.
I got it work when trying:
contents: url(../../../color.png);
but not:
contents: url(/color.ong);
EDIT: I'm a moron. Thank you guys for your help- it actually clicked something in my brain.