Using Font-Awesome - in Chrome, icons displayed with <i class = "icon-ok"> </i> markup do not show any style and do not cause any events on it
I use Font-Awesome, which is an iconic font for use with Twitter Bootstrap.
Markup -
<i class="icon-remove reset-preference-button"></i>
CSS -
.reset-preference-button {
cursor: pointer;
}
JavaScript -
$(".reset-preference-button").on("click", function() {
// ... do something
});
When I draw a page, the cursor does not change to a pointer when it hovers over an element. Also, nothing happens when I click on the icon. I made sure the icon exists before I bind the event.
Please note that I am using an element, not something else. It looks like when I explicitly set the style for this element "display: inline-block;", it works fine.
Chrome. FF IE. - 18, .
+5