I implemented Font-Awesome, an iconic font designed for use with Twitter Bootstrap.
Here is the markup:
<i class="icon-remove reset-preference-button"></i>
And here is the CSS:
.reset-preference-button {
cursor: pointer;
}
For JavaScript functionality:
$(".reset-preference-button").on("click", function() {
// ... do something
});
However, when I view the page, the cursor does not change to a pointer upon hovering over the element. Clicking on the icon also has no effect, even though I have confirmed that the icon exists before binding the event.
It seems that setting the style of the element explicitly to "display: inline-block;"
resolves this issue. This behavior is specific to Chrome, as it functions properly in Firefox and IE. I am encountering this problem on Chrome version 18, though it may affect other versions as well.
I have already reported this bug at https://github.com/FortAwesome/Font-Awesome/issues/157