Solution:
ul li:before {
font-family: 'FontAwesome';
content: '\f067';
margin:0 5px 0 -15px;
color: #f00;
}
Here’s a blog post which explains this technique in-depth.
More Related Contents:
- Font Awesome 5 shows empty square when using the JS+SVG version
- Font Awesome 5 Choosing the correct font-family in pseudo-elements
- Font Awesome 5, why is CSS content not showing?
- Use Font Awesome Icons in CSS
- Font Awesome not working, icons showing as squares
- Font Awesome 5 – why aren’t icons like bitcoin, facebook, twitter showing?
- How to style icon color, size, and shadow of FontAwesome Icons
- Search input with an icon Bootstrap
- How to use Font Awesome from webjars.org with JSF
- How to use 3rd party CSS libraries such as Font Awesome with JSF? Browser can’t find font files referenced in the CSS file
- Font Awesome 5 unicode
- How to change color of icons in Font Awesome 5?
- CSS for star ratings via FontAwesome
- Make Font Awesome icons in a circle?
- How do I include a font awesome icon in my svg?
- LESS mixin a variable class name
- Custom li list-style with font-awesome icon
- What does !important mean in CSS?
- CSS3 selector :first-of-type with class name?
- Pure CSS checkbox image replacement
- Add line break to ::after or ::before pseudo-element content
- Usage of display property of flex box items
- bootstrap button shows blue outline when clicked
- How to Decrease Image Brightness in CSS
- Why can’t I make my div 100% height if I use an HTML5 doctype? How do I get it 100% height
- How to create multiple borders around existing border of circle [duplicate]
- When setting a font-size in CSS, what is the real height of the letters?
- Animate CSS background-position with smooth results (sub-pixel animation)
- css: the meaning of * mark
- input type=”image” shows unwanted border in Chrome and broken link in IE7