In the snippet, you'll see ::after
pseudo with a border setting. I'm trying to add a border to the right of each class .details
and place that border in the middle of each column to look like this:
.header-profile__sub {
display: flex;
flex-wrap: wrap;
}
.header-profile__sub .details {
display: flex(column);
width: 100%;
}
.header-profile__sub .details p {
margin: 0.2rem 0;
line-height: 1.5;
color: #000a70;
}
.header-profile__sub .details p span:first-of-type::after {
content: ':';
}
@media (min-width: 768px) {
.header-profile__sub .details {
width: 33%;
flex-grow: 1;
background: white;
}
.header-profile__sub .details:not(:last-of-type) {
border-right: 5px solid green;
content: "";
}
}
<div class="header-profile__sub">
<div class="details">
<p>
<span><a href="#">Company Name</a></span>
</p>
<p>
<span>Plan</span>
<span> Professional</span>
</p>
</div>
<div class="details">
<p>
<span>Users</span>
<span>23</span>
</p>
<p>
<span>Founded</span>
<span>2017</span>
</p>
</div>
<div class="details">
<p>
<span>Favorite Features</span>
<span>Call Recording, Call Groups, App, Auto-Attendant</span>
</p>
</div>
</div>