works, but why doesn't ...">

Using facebook glyphicon from bootstrap 3

I would like to use glyphicon-facebook. <i class="glyphicon glyphicon-search">works, but why doesn't it work <i class="glyphicon-facebook">? And also there is no such parameter as 'glyphicon glyphicon-facebook'.

+4
source share
3 answers

There is no glyphicon-facebook-glyph in the Bootstrap glyph library: http://getbootstrap.com/components/

Take a look at fontastic.me . You can create custom glyph sets and there are tons of free glyphs to choose from, including facebook glphys.

Another alternative is icomoon.io

+10
source

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

<i class="fa fa-facebook"></i>

for different logos you should use a different name, here is a list of icons and their code http://fontawesome.io/icons/

+2
source

Source: https://habr.com/ru/post/1536118/


All Articles