I'm trying to create something similar to this with the use of pseudo:
But unsure on if the approach I currently have is the best way to go about this?
.divider{
display: flex;
flex-direction: column;
}
.line1::before{
content: '';
/*position: absolute;*/
display: block;
width: 4em;
height: .2em;
background: red;
transform: rotate(90deg);
}
.circle::before{
content: '';
display: inline-block;
width: 15px;
height: 15px;
-moz-border-radius: 7.5px;
-webkit-border-radius: 7.5px;
border-radius: 7.5px;
background-color: red;
}
<div class="divider">
<div class="line1"></div>
<div class="circle"></div>
<div class="line2"></div>
</div>
Would you create something like this using pseudo-elements? If so, how can I get it to appear like the one in the image?