Wondering how to insert special characters and symbols inside generated CSS content? This article will show you how.
Insert special characters and symbols inside generated CSS content using their hex notation instead of the usual HTML entity notation. For example, ©
becomes \\00a9
:
Here’s another example:
.foo::before {
content: "An ellipsis\2026";
}
This is how you insert special characters and symbols into CSS.
For a more comprehensive review of the HTML5 markup language, explore our series, How To Build a Website in HTML.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in our Questions & Answers section, find tutorials and tools that will help you grow as a developer and scale your project or business, and subscribe to topics of interest.
Sign up