Seeking assistance with styling text in a bootstrap tooltip. My request is straightforward: I would like the text in the tooltip on the first button to be displayed in red color. I have used
data-html="true"
attribute to allow HTML in the tooltip. However, why isn't it showing in red?
<button data-toggle="tooltip" data-html="true" data-trigger="click" title="<div style='color:red;'>this text should be red</div>">
Press me
</button>
In addition, for the next tooltip, I want it to be visible right away without being hidden by the table layout. Could this be caused by the same issue?
<button data-toggle="tooltip" data-html="true" data-trigger="click" title="<table><tr><td>this text should appear</td></tr></table>">
Press me 2
</button>
I have created a fiddle demonstrating the problem clearly.
https://jsfiddle.net/ws9z37q2/9/
Your help and guidance would be greatly appreciated. Thank you in advance!