I have a header with some links and I want to create space and add a border between them.
I attempted using ::before pseudo-content, but it's not displaying the content where I intended.
.header_links_ul {
list-style: none;
margin: 0;
padding: 0;
}
.header_links_ul li a {
color: #000;
font-size: 12px;
display: block;
}
@media (min-width:992px) {
.header_links_ul li+li::before {
position: absolute;
top: 50%;
left: 0;
width: 1px;
height: 8px;
margin-top: -4px;
background: #ff0000;
content: '';
}
}
<div class="row">
<div class="col-md-6">
<ul class="header_links_ul header_links_ul_left d-flex justify-content-center justify-content-md-start">
<li><a href="#">Vásárlási információk</a></li>
<li><a href="#">Szállítás</a></li>
<li><a href="#">Kapcsolat</a></li>
</ul>
</div>
<div class="col-md-6">
<ul class="header_links_ul header_links_ul_right d-flex justify-content-center justify-content-md-end">
<li><a href="#">Regisztráció</a></li>
<li><a href="#">Bejelentkezés</a></li>
</ul>
</div>
<div class="clearfix"></div>
</div>
The current result I have can be seen on this photo, along with what I am aiming for: https://i.sstatic.net/iUk6k.jpg