https://i.sstatic.net/MnNQY.png
Why isn't z-index working for me? I have a process div (container) Inside the process div, there are links in a row. These links are further divided into progress_number divs (large number) and progress_text divs (short description below large number). I have also added bars between each progress_number div.
Check out the HTML code below
<div class="process">
<a href="">
<div class="process_number">1</div>
<div class="process_text">text1</div>
</a>
<a href="">
<div class="process_number">2</div>
<div class="process_text">text2</div>
</a>
<a href="" class="process_selected">
<div class="process_number">3</div>
<div class="process_text">text3</div>
</a>
<a href="">
<div class="process_number">4</div>
<div class="process_text">text4</div>
</a>
<a href="">
<div class="process_number">5</div>
<div class="process_text">text5</div>
</a>
</div>
Here's the CSS code
.process{
width:100%;
height:160px;
border-bottom:1px solid #c4cdd2;
margin-top:35px;
z-index:;
}
.process a{
text-align:center;
text-decoration:none;
display:inline-block;
margin-left:186.5px;
position: relative;
}
.process a:first-child{
margin-left:50px;
}
.process .process_number{
height:75px;
width:75px;
font-size:47px;
font-weight:bold;
border: 1px solid #47a5d8;
border-radius:100%;
color: #47a5d8;
background-color:#fff;
text-align:center;
line-height:170%;
z-index:;
}
.process .process_text{
font-size:15px;
font-weight:bold;
color: #c4cdd2;
margin-top:10px;
}
.process .process_number::before{
content:'';
position:absolute;
top:33px;
right:55px;
width:250px;
height:10px;
background-color:#47a5d8;
z-index:1;
}
.process a:first-child .process_number::before{
display:none;
}
.process_selected .process_number{
color:#fff;
background-color:#47a5d8;
}
.process_selected ~ a .process_number{
color:#c4cdd2;
background-color:#fff;
border-color:#c4cdd2;
}
.process_selected ~ a .process_number::before{
background-color:#c4cdd2;
}
.process_selected .process_text{
color:#47a5d8;
}
Currently, I'm struggling to hide the bar (.process_number::before) behind the large round bounded number (.process_number). Despite trying to modify the z-index, all my attempts have failed. Any advice would be greatly appreciated.