I have the following HTML code:
<td data-label="https://www.example.com/myimage.jpg">
<span>3</span>
</td>
In my CSS, I want to get that data-label
attribute and use it for CSS content, like this:
content: url("attr(data-label)");
However, this is not working. I tried several ways, but I'm unable to display the image.
Using just...
content: url("https://www.example.com/myimage.jpg");
... works like a charm!
Any ideas? Is this possible at all?