0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

FontAwesomeのアイコンの大きさを変更する

Posted at

はじめに

FontAwesomeのアイコンをオリジナルアプリに取り入れています。

そこでサイズを変更がなかなかうまくいかなくて時間がかかったので投稿します。

間違えたこと

 <div class="review-gear">
   <i class="fas fa-cog"></i>
   <i class="fas fa-trash-alt"></i>
 </div>
.scss

.fas {
       width: 5px;
       height: 5px;
      }

スクリーンショット 2021-07-15 21.49.03(2).png

変わりませんでした。。。

正解

.fas {
       margin-right: 5px;
       font-size: 25px;
     }

スクリーンショット 2021-07-15 21.51.43(2).png

画像と勝手にとらえてたので勘違いをしていました。
このアイコンは文字ととらえfont-sizeなのかなと思いました。

※正しいやり方かは分かりません・・・

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?