Skip to content

Instantly share code, notes, and snippets.

@jpgls
Created September 15, 2014 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpgls/ccde3df8ff9659e1800b to your computer and use it in GitHub Desktop.
Save jpgls/ccde3df8ff9659e1800b to your computer and use it in GitHub Desktop.
Unicode Characters in CSS Content

Unicode Characters in CSS Content

Many of the little symbols that we regularly use as bullets, arrows, etc. already exist as unicode symbols. [[more intro]]

Usage

Find the code for the symbol you would like to use, some useful links are:

Place them as the content attribute in pseudo-elements (::before, ::after).

If the example includes a "U+" replace that with a "" to get them to render correctly.

Syntax

[selector]::before {
	content: "\*******";
	}

Benefits

[[coming soon]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment