1

I am using Bootstrap 4. I would like to use Glyphicon in my own class like below.

.my_class { content: "\e253"; }

How can I use that ?

abu abu
  • 6,599
  • 19
  • 74
  • 131

2 Answers2

1

Glyphicons has been deprecated in bootstrap 4, you can use fontawsome instead, check the attached comment link for an example on using fontawsome, try it and it will achieve what you seek to https://stackoverflow.com/a/20782415/5710264

Emad Abdou
  • 277
  • 1
  • 7
1
  • Use ::before pseudo class
  • Use glyphicon class

Note: Same applies for font awesome also

.my_class::before {
  content: "\e253";
}
<link href="//netdna.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

<span class="glyphicon my_class"></span>
User863
  • 19,346
  • 2
  • 17
  • 41