Issue:
I am experiencing visibility of the underlying divs, even though they are supposed to be covered by another div of the same size.
.gauge-wrapper {
position:relative;
margin:20px;
background-color: black;
}
.gauge-arc {
position:absolute;
top:0;
left:0;
width:100px;
height:100px;
border-radius:100%;
border:7px solid;
}
.gauge-arc1 {
border-color:red transparent transparent transparent;
transform: rotate(200deg);
}
.gauge-arc2 {
border-color:red transparent transparent transparent;
transform: rotate(180deg);
}
.gauge-arc3 {
border-color:red transparent transparent transparent;
transform: rotate(180deg);
}
.gauge-mask {
border-color: transparent transparent white transparent;
z-index:9999
}
.gauge-background {
border-color: #c3bdbd;
z-index: -1;
}
<div class="gauge-wrapper">
<div class="gauge-arc gauge-arc1"></div>
<div class="gauge-arc gauge-arc2"></div>
<div class="gauge-arc gauge-arc3"></div>
<div class="gauge-arc gauge-mask"></div>
<div class="gauge-arc gauge-background"></div>
</div>
Attempted Solutions:
- Increased border width on top div
- Modified border color
- Adjusted bottom border width only
Desired Outcome:
The top div should not have any visible outline. I am open to unconventional fixes for this issue. If there is a simpler way to achieve my goal, I welcome that as well but still seek resolution using HTML/CSS specifically.