css - bootstrap icons not displaying -
i downloaded image bootstraps icons , use them in web page
i have image, , correct css
but arent displaying @ all.
css
.icon-home { background-image:url(../img/glyphicons-halflings.png); background-position: 0 -24px; }
html
<div class="col"> <span class="icon-home"></span> <p>pittsburgh, pa 15276</p> </div>
fiddle
https://jsfiddle.net/jwct6rmk/
i uploaded image imgur account.
you'r missing styling.. display:block
on span
element.
try this:
.icon-home { background-image:url(http://i.imgur.com/umalj55.png); background-position: 0 -24px; width: 12px; height: 12px; display:block; }
or better:
.icon { background-image:url(http://i.imgur.com/umalj55.png); width: 12px; height: 12px; display:block; } .icon-home { background-position: 0 -24px; } .icon-car { background-position: 0 -36px; } ...
Comments
Post a Comment