Align items vertically

.flex {
  display: flex;
  align-items: center;
}

To push an element to the right – for example in a navigation – use:

.pushed {
  margin-left: 0;
}
  • css