My question is simple, how I'm able to vertically center divs in my navbar so they will be always in the center no matter what height of the navbar i set. I have already tried vertical-align: middle;
but that didn't work for me.
HTML:
<div class="navbar">
<div class="buttons">
<button class="homeButton"><i class="fas fa-home"></i></button>
<button class="schoolButton"><i class="fas fa-graduation-cap"></i>mySchool</button>
</div>
<div class="links">
<a href="#">Programování</a>
<a href="#">Anglický jazyk</a>
<a href="#">Psychologie</a>
<a href="#">Zdraví a psychohygiena</a>
<a href="#">Matematika</a>
<a href="#">Logické úlohy</a>
<a href="#">Programy</a>
<a href="#">Ostatní</a>
</div>
</div>
CSS:
.navbar {
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
border-radius: 0px 0px 10px 10px;
width: 100%;
height: 100px;
font-family: Open Sans;
background: white;
position: fixed;
}
.buttons {
float: left;
}
.links {
float: right;
}