How do you use the CSS content
property to add HTML entities?
Using something like this just prints
to the screen instead of the non-breaking space:
.breadcrumbs a:before { content: ' '; }
Unfortunately, this is not possible. Per the spec: Generated content does not alter the document tree. In particular, it is not fed back to the document language processor (e.g., for reparsing).
No. HTML entities represent characters. Characters (except for emoji) do not have inherent colour. Show activity on this post.
You have to use the escaped unicode :
Like
.breadcrumbs a:before { content: '\0000a0'; }
More info on : http://www.evotech.net/blog/2007/04/named-html-entities-in-numeric-order/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With