css – How to put special characters with ::after?

Question:

Here is the code, I want to put the character © :

h1::after{
	content: ©
}

Answer:

You need to use CSS unicode character, example:

h1::after{
  content:"\00a9";
  font-size: 14px;
  position: relative;
  top: -10px;
  left: -5px;
}
<h1>
Empresa
</h1>

List of special characters

Scroll to Top