Feeling frustrated after encountering an issue where the Bootstrap button class interferes with the hover function in standard CSS.
Decided to create a custom solution by adding a grey box next to the button to display hover information instead of using tooltips. Here's the code:
HTML
<a class="btn btn-danger disabled" disabled="disabled" href="" id="statement-delete" onclick="return false;">Delete
<span id="delete-info"></span>
</a>
CSS
#statement-delete:hover #delete-info {
display: block;
}
#delete-info {
display: none;
background: #C8C8C8;
margin-left: 0px;
padding: 10px;
position: absolute;
z-index: 1000;
width:200px;
height:100px;
}
Originally thought there was an error in the code, but after testing on JSFiddle without Bootstrap, it worked perfectly. However, upon adding Bootstrap references, the hover function failed.
Here's the fiddle for reference: http://jsfiddle.net/ga82Lbm5/1/
Upon removing the Bootstrap reference, the hover worked as expected.
Is it feasible to enable the hover function on a Bootstrap button, or is utilizing custom jQuery the only solution?