Within my <ul>
I ofcourse have a few <li>
. These list-items need to be centered vertically and the background has to be full width and height.
The way I tried was by using align-items: center;
on the <ul>
and I tried align-self: center;
on the <li>
Here is my code as it is right now:
.desktop-menu-left {
display: grid;
grid-template-columns: auto auto auto auto auto auto;
height: 100%;
padding: 0;
margin: 0;
}
.desktop-menu-left li {
height: 100%;
}
.desktop-menu-left li a {
height: 100%;
padding: 0 10px;
}
<ul class="desktop-menu-left">
<li class="darkblue"><a href="#">Opleidingen</a></li>
<li class="orange"><a href="#">Leren bij *</a></li>
<li class="green"><a href="#">Open huis</a></li>
<li class="pink"><a href="#">Voor bedrijven</a></li>
<li class="darkorange"><a href="#">Over *</a></li>
<li class="lightblue"><a href="#">Niews</a></li>
</ul>