LoginSignup
9
9

More than 5 years have passed since last update.

【CSS】FontAwesomeをcssのbefore/afterで使う方法

Last updated at Posted at 2014-07-12

FontAwesomeをhtmlではなく、cssのbefore/afterに記述するときは、以下のに記述すると使える。

style.css
li a:before {
  content: "\f105";
  font-family: FontAwesome;
}

font-familyでFontAwesomeを指定しないと使用できないので、注意。

9
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
9