Skip to main content

All Questions

2 votes
2 answers
5k views

How do I put character &#8226 ::before an element? [duplicate]

I want to put a circle/dot ::before an element &#8226 • nothing I am doing is visible! .line ::before{ content:'&#8226'; } and .line ::before{ content:'•'; } (I see ...
Ben Muircroft's user avatar
-1 votes
1 answer
995 views

HTML entities in CSS content (convert entities to escape-string at runtime)

I know that html-entities like   or ö or ð can not be used inside a css like this: div.test:before { content:"text with html-entities like ` ` or `ö` ...
Hubert Schölnast's user avatar
1142 votes
10 answers
515k views

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: '&...
nickf's user avatar
  • 547k