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

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:

4

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy