I'm having trouble displaying an element with a background-image
property within a Bootstrap tooltip. The image is not showing up as expected.
<div class="big-panel">
<a href="#" data-bs-toggle="tooltip" data-bs-html="true" data-bs-title="Background image: <span style='display: block; background-size: cover;width: 32px; height: 32px; background-image: url(test/image.png)'></span> <br>Regular image: <img src='test/image.png'>">Hover me for testing</a>
</div>
In the same tooltip, I included a regular <img>
tag which displays correctly. However, the background-image
does not seem to be working. Is there a way to make this work?