John Dorean John Dorean - 3 years ago 252
CSS Question

Glyphicons rendering as empty box

I'm using the excellent Twitter bootstrap library with Glyphicons, however all the icons are rendering as empty squares, like so:

enter image description here

I've uploaded the Glyphicons fonts to my web root and changed the

file to point to their correct locations, which I've verified because they have
200 OK
requests in Chrome's dev tools:

enter image description here

This is the markup I'm using:

<a href="" class="btn btn-primary"><span class="glyphicon glyphicon-star"></span> Download to Computer</a>

Any ideas why the font may be rendering as empty boxes? Previous answers on StackOverflow all point to incorrect paths to the fonts, which isn't the case here as the paths are correct.

Answer Source

Not really a solution, but I ended up just using the Bootstrap CDN:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download