Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Adding HTML entities using CSS content

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: ' ';
}
by

2 Answers

RoliMishra
.breadcrumbs a:before {
content: ' ';
}
sandhya6gczb
Use exactly six hexadecimal digits for the escape sequence:

.breadcrumbs a:before {
content: '\0000a0foo';
}

Login / Signup to Answer the Question.