Currently, I am trying to implement a tooltip above my progress bar. However, the small tooltip that I have is not functioning correctly...
This is how it currently appears:
https://i.sstatic.net/ZJUyT.png
I need the tooltip to display above the white dot.
Here is the HTML and CSS code that I am using:
HTML:
<div class="progress">
<div class="progress-bar popOver" data-toggle="tooltip" data-placement="top" title="472 km"
role="progressbar" aria-valuenow="48.5" aria-valuemin="0" aria-valuemax="100" style="width:48.5%">
</div>
</div>
CSS:
.progress {
height: 8px;
border-radius: 9.5px;
.progress-bar {
background-color: #ec4124;
border-radius: 5px;
}
// The white dot at the end of the progress bar
&::after {
content: "";
width: 6px;
height: 6px;
position: relative;
border-radius: 100%;
right: 8px;
top: 1px;
background-color: $white;
}
}
.tooltip > .tooltip-inner {
background-color: $white;
padding: 11px 16px;
color: $red;
font-family: Config, sans-serif;
font-size: 18px;
font-weight: 800;
font-stretch: condensed;
font-style: italic;
line-height: 1.33;
letter-spacing: normal;
text-align: center;
opacity: 1;
}
.bs-tooltip-top .arrow::before, .bs-tooltip-auto[x-placement^=top] .arrow::before {
top: 0;
border-width: 0.4rem 0.4rem 0;
border-top-color: #fff;
}
A live demo can be found at the provided link.