I have assigned a values to the variable for calling images in CSS like below:
IN CSS file,
:root {
--logurl: "domain url";
}
Then i have passing the variable to background images in css like :
.closeBtn {
background-image: url("var(--logurl)/assets/images/logo.png");
}
But, it is not working. The Domain URL is not binding with the assets/images/logo.png
Is there anyway to call the variable in css?