bootstrap icons

1

I'm trying for an icon bootstrap, but I'm not getting it ..

      <head>
        <!-- Required meta tags -->
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

        <!-- Bootstrap CSS -->

        <link rel="stylesheet" href="css/xd.css">
          <link rel="stylesheet" href="css/cardslider.css">
        <link href="css/bootstrap.min.css" rel="stylesheet">
      </head>
        <div class="container">
        <div class="row  " id="lul">
            <div class="col-12 d-flex">
              <span class="glyphicon glyphicon-star">x</span>
              <h3 class="mr-auto mt-3">Novidades</h3>
              <a class="btn btn-outline-secondary prev mt-3 mb-3" href="" title="go back"><i class="fa fa-lg fa-chevron-left"></i></a>
              <a class="btn btn-outline-secondary next mt-3 mb-3" href="" title="more"><i class="fa fa-lg fa-chevron-right"></i></a>
            </div>
        </div>
        </div>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
    <script src="js/popper.js"></script>
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
    <script>

I imported into css

@import url(http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css);

and it looks like this

    
asked by anonymous 03.10.2018 / 21:52

2 answers

1
Basically you're using the Glyphicon classes which was the standard Bootstrap 3 icon library inside Bootstrap 4, however indexing the Fontawesome 5 CSS and doing a Fontawesom 4 rss feed ... it's kind of all wrong ... Choose only one of them to work with ...

I suggest you continue with Fontawesome 5 yourself, but for this you need to use the correct classes. Here is a link with all the icons of them link and here is an example of how to use classes: link

Basically to use any icon you have to include a tag like this: <i class="fas fa-address-book"></i>

Here's how it looks in your code:

<link rel="stylesheet" type="text/css" media="screen"href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" />

    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
    

    <i class="fa fa-lg fa-adjust">
    <i class="fa fa-lg fa-address-card"></i>

    <div class="container">
        <div class="row  " id="lul">
            <div class="col-12 d-flex">
              <span class="glyphicon glyphicon-star">x</span>
              
              <h3 class="mr-auto mt-3">Novidades</h3>
              <a class="btn btn-outline-secondary prev mt-3 mb-3" href="" title="go back"><i class="fa fa-lg fa-chevron-left"></i></a>
              <a class="btn btn-outline-secondary next mt-3 mb-3" href="" title="more"><i class="fa fa-lg fa-chevron-right"></i></a>
            </div>
        </div>
    </div>
    
03.10.2018 / 22:33
0

Hello

This import you've made is performing refers to the "font-awesome icons" library. '

try inserting these links as well:

'' link link link

    
03.10.2018 / 21:58