Back
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: ' ';}
.breadcrumbs a:before {
content: ' ';
}
You need to use the escaped Unicode like this:
.breadcrumbs a:before { content: '\0000a0';}
content: '\0000a0';
For more information you can refer to:
http://www.evotech.net/blog/2007/04/named-html-entities-in-numeric-order/
31k questions
32.8k answers
501 comments
693 users