I am currently working on a progress bar and I would like it to look similar to this:
https://i.sstatic.net/TSDEy.png
However, my current output looks like this:
https://i.sstatic.net/rQhYc.png
I'm puzzled as to why the tooltip is floating there, and not positioned above the current value...
This is the HTML code I have:
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="48.5" aria-valuemin="0" aria-valuemax="100" style="width:48.5%">
<span class="popOver" data-toggle="tooltip" data-placement="top" title="472 km"> </span>
</div>
</div>
And here is the CSS:
.progress {
height: 8px;
border-radius: 9.5px;
.progress-bar {
background-color: #ec4124;
border-radius: 5px;
&[aria-valuenow]::after {
content: "";
width: 6px;
height: 6px;
position: absolute;
border-radius: 100%;
right: 7px;
background-color: $white;
}
}
}
.tooltip{
position: relative;
float: right;
}
.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;
}
Can anyone suggest how I can position the tooltip correctly and have a "white dot" at the current value?
EDIT
The dot is no longer an issue, I am now left with the tooltip issue.