Skip to content

Instantly share code, notes, and snippets.

@kabbo508
Created October 15, 2017 20:34
Show Gist options
  • Save kabbo508/57bcf0e8c9b82b1b581e964537b9e0a4 to your computer and use it in GitHub Desktop.
Save kabbo508/57bcf0e8c9b82b1b581e964537b9e0a4 to your computer and use it in GitHub Desktop.
How to Setup Fontawesome icon with CSS Content value
.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