Copyright Symbol in Css: After Pseudo-Element
Solved - Used \00A9 Instead of © Pretty Self-Explanatory: Body: After { Content: "© Me"; /* Other Formatting */ } in Html, the © Sequence Inserts a Copyright...
SOLVED - used \00a9 instead of ©
Pretty self-explanatory:
body:after {
content: "© me";
/* other formatting */
}
In HTML, the © sequence inserts a copyright character. Can this be done in CSS Pseudo-Elements like I'm trying to do here?
1 Answer
CSS doesn't use HTML's entities; it uses its own unicode escape sequences.
You need to use \00a9 for the copyright symbol.
body:after {
content:"\00a9 me";
}
See here for a cheat-sheet table which shows just about every entity/unicode string you'd ever need: