LoginSignup
1
0

More than 3 years have passed since last update.

Font Awesomeのアイコン(SVG)に縁取りをする

Posted at

デザインなどでFontAwesomeのアイコンを重ねて表示したい時に、そのまま重ねると境界がないためきれいに表示させることができませんでした。

image.png

枠線の色を背景色と同じ色にして、枠線を太くすることでアイコンを縁取りするCSSを追加すると重ねても区別して表示されるようになりました。 :star2:

svg.fa-star {
    stroke: #82a5c8;
    stroke-width: 12px;
}

image.png

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