Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap icons not showing up

I'm developing an angularjs app using bootstrap as the UI. I've downloaded a tutorial from YouTube which i'm following and the problem i'm facing is my icon is not showing up.

<!DOCTYPE html>
<html>

  <head>
    <link data-require="bootstrap@*" data-semver="4.0.5" rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" />
    <script data-require="bootstrap@*" data-semver="4.0.5" src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="style.css" />
    <script src="script.js"></script>
  </head>

  <body>
    <div class="container-fluid"> 
    <div class="row">
      <div class="col-xs-12">
        <h1><span class="glyphicon glyphicon-align-left" aria-hidden="true"></span> Hello Plunker!</h1>
      </div>

    </div>
    <div class="row">
      <div class="col-sm-3">
        Nav
      </div>
      <div class="col-sm-9">
        <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
      </div>
    </div>
    </div>
  </body>

</html>
like image 470
user6579134 Avatar asked Dec 18 '25 13:12

user6579134


2 Answers

For me, I had installed the node module but not the icons themselves, which needed this in my application.scss:

@import url("https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css");

I got it from here

like image 177
stevec Avatar answered Dec 21 '25 08:12

stevec


I installed bootstrap-icons via the npm package manager. But, I had to import bootstrap-icons.scss in my index.scss file.

For example -

index.scss

@import 'node_modules/bootstrap-icons/font/bootstrap-icons.scss';

Note - Make sure to provide current path to node_modules respective to your index.scss file.

like image 23
Sachin Som Avatar answered Dec 21 '25 07:12

Sachin Som



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!