I would like to change the text "Confidențialitate & Cookie-uri" to an image (to this image) using CSS in the following code:
<div id="cookie-law-info-again" data-nosnippet="true" style="background-color: rgb(37, 166, 226); color: rgb(255, 255, 255); position: fixed; font-family: inherit; width: auto; bottom: 0px; left: 20px;">
<span id="cookie_hdr_showagain">Confidențialitate & Cookie-uri</span>
</div>
on my website: link
3
Answers
Try this, and tell me if it works:
CSS provides a mechanism to replace the contents of an element directly with an image using
content: url(...)
so: