<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
This downloads font awesome from bootstrap cdn.
In CSS, you can try:
.your-class {
content: "\f00c";
font-family: 'FontAwesome';
}
which provides you the icon ok
Or in html codes, you can use
<i class="fa fa-ok fa-lg"></i>
<div></div>
has similar results. Notice that <div> must have
font-family: 'FontAwesome'
in its class.
Check this cheat sheet for more symbols:
http://fontawesome.io/cheatsheet/
Check youtube links for help too:
No comments:
Post a Comment