html - How to disable the clickable property for Bootstrap glyphicons? -


i've included bootstrap-3 glyphicons on website:

<a class="glyphicon glyphicon-wrench"></a> 

i have voluntarily omitted href attribute because don't need clickable property (these icons used decoration).

the icons remain clickable: color changes when mouse comes on them , underline appears @ same time, giving illusion can clicked achieve something...

is there way disable behavior?

don't use a, instead use span or i. style span way like.

html:

<span class="glyphicon glyphicon-wrench"></span> 

html icon in a:

<a href="#"><span class="glyphicon glyphicon-wrench"></span> link icon</a> 

css:

a span { style } 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -