DEV Community

Discussion on: Code block $ prefix

glennmen profile image
Glenn Carremans Author

Good question! I did a quick search and actually you can.

attr() has an optional fallback, however this is still an experimental feature.

content: attr(prefix, "$");
dennisk profile image
Dennis Keirsgieter • Edited on

And here i am looking at the docs and missing the last part about the fallback.. Thanks for that! Doesn't seem to work in my version of chrome yet tho.