Created
October 15, 2017 20:34
-
-
Save kabbo508/57bcf0e8c9b82b1b581e964537b9e0a4 to your computer and use it in GitHub Desktop.
How to Setup Fontawesome icon with CSS Content value
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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