Skip to content

Instantly share code, notes, and snippets.

@cagartner
Created September 11, 2017 17:03
Show Gist options
  • Save cagartner/ecf70a34ca10851feb6e461c0d7707f7 to your computer and use it in GitHub Desktop.
Save cagartner/ecf70a34ca10851feb6e461c0d7707f7 to your computer and use it in GitHub Desktop.
Font Awesome css content
.element {
position: relative;
}
/*replace the content value with the
corresponding value from the list below*/
.element:before {
content: "\f000";
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
text-decoration: inherit;
/*--adjust as necessary--*/
color: #000;
font-size: 18px;
padding-right: 0.5em;
position: absolute;
top: 10px;
left: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment