Hi lllya,
Thank you for the response.
I have an exact same problem and case with him.
I am using appery.io website's development environment.
I want to put a background image on a circular button.
Button name is: btnFav, and I am using css class for that:
.btnFav{
width: 20px;
height: 20px;
-moz-border-radius: 40px;
-webkit-border-radius: 40px;
border-radius: 40px;
}
The last three line I have added is to get a circular shape button.
I added the css class to btnFav properties-Class Name.
I have uploaded the image inside SOURCE at :
WEB_RESOURCES-files-resources-image-icon1.png,
I have tried by putting:
background-image: url("../resources/image/icon1.png") !important;
background-image: url("../files/views/assets/image/icon1.png")!important;
background: url("../files/views/assets/image/icon1.png")!important;
url("..\files\views\assets\image\icon1.png")
url("files/views/assets/image/icon1.png")
url("files\views\assets\image\icon1.png")
I don't know how to get the path of the file in code so that I can use it in the CSS class using the appery.io development website itself.
Of course, I have also tried to use your JS url method and worked fine, but I need to do it in the CSS class.
Thank you and please help me.