I am following a Pluralsight .Net Core tutorial that involves heavy use of Bootstrap glyph icons. However, none of the glyph icons will show in any browser on my Windows 10 system (I've tried both the latest version of Chrome and Edge). I'm using Bootstrap 5.2.0 downloaded from the official CDN. The default bootstrap references in the default project created for me when I started the Pluralsight tutorial referenced a local folder (see code snips below) but since this wasn't working my first thought was to make the changes you see in my code snips, referencing the CDN instead. From my _Layout.cshtml:
<!-- link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" /> -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css">
and:
<!-- script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"> -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.min.js"></script>
The code from the Pluralsight tutorial that SHOULD render an input box and a glyph is as follows:
<form method="get">
<div class="form-group">
<div class="input-group">
<input type="search" class="form-control" value="" />
<span class="input-group-btn">
<button class="btn btn-default"></button>
<i class="glyphicon glyphicon-search"></i>
</span>
</div>
</div>
Please note that I do have a closing </FORM> tag in the above code but StackOverflow's code editor keeps cutting it out on me!
However, what I end up with is illustrated below. I have highlighted in yellow where the glyph SHOULD appear. There does appear to be an invisible button here: If I hover over this area a rectangular outline appears as you would expect but there is obviously nothing graphical:
Things I have tried:
- Different web browsers (Chrome and Edge)
- Making sure I have all Windows updates installed
- Going to a w3 Schools Bootstrap tutorial and starting with a working simple Bootstrap "hello world" page then adding my offending code (the form-group code I show above). I also get the same result: no glyph, just an empty button placeholder
- Googling different glyph icon names and trying something other than glyphicon-search. I get the same result. I cannot display any glyph icons in any browser.
- Ctrl-u on the page source and making sure bootstrap is indeed being loaded by my page
I am at a complete loss here. Any help would be appreciated.
