I want to add the svg link inside the content property. Can I do it?
.selectedItem::before{
content: " any svg link ";
I want to add the svg link inside the content property. Can I do it?
.selectedItem::before{
content: " any svg link ";
Copyright © 2021 Jogjafile Inc.
Absolutely, I use this (or rather a variant of it) all the time:
You'll need to either upload your SVG and use the URI to it:
url('/assets/svg/mysvg.svg');, or you'll need to URL encode it, remove double quotes, and convert it to a data-image like I've shown you in the example above. Writing a JS, PHP, etc. function for that would be trivial - but if you need a one-off copy/paste data-image, you can just use this tool: https://yoksel.github.io/url-encoder/