This is very clever! Thank you for sharing.
Just one question, how well supported is the var(--image-url) method?
I can't seem to find it on caniuse.com.
Cheers!
It’s not supported in IE, unfortunately, since it doesn’t support css dynamic properties. Otherwise, it’s well supported.
Ahhh, that darn web browser! haha That's great news it's supported by modern browsers. Thanks again, really appreciate the knowledge :-)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This is very clever! Thank you for sharing.
Just one question, how well supported is the var(--image-url) method?
I can't seem to find it on caniuse.com.
Cheers!
It’s not supported in IE, unfortunately, since it doesn’t support css dynamic properties. Otherwise, it’s well supported.
Ahhh, that darn web browser! haha
That's great news it's supported by modern browsers.
Thanks again, really appreciate the knowledge :-)