Looking to customize the styles of tooltip and popover elements individually within different sections on Bootstrap 4? Here's an example:
Apply a color and other CSS options to this element:
<div class="first-type">
<div data-toggle="popover" data-trigger="hover" title="About Us" data-placement="left">
<a href="#about" class="item-class"></a>
</div>
</div>
And here's how you can style another element differently:
<div class="second-type">
<div data-toggle="popover" data-trigger="hover" title="Services" data-placement="left">
<a href="#services" class="item-class"></a>
</div>
</div>
In Bootstrap 3x, adding popover codes directly into the element allowed for easy styling with classes. However, in Bootstrap 4, the popover codes are added to the body. How can this be resolved?