1

I'm trying to get my menu centered using flexbox centering in the middle of the bar while the last element is pushed to the bottom of the container.

Here is my JSfiddle.

I've tried with align-self flex-end with no success and

li:last-child {
    margin-top: auto;
}  

That aligns my the last element to the bottom but pushes the rest of the items to the other end of the container.

Asons
  • 84,923
  • 12
  • 110
  • 165
indiehjaerta
  • 319
  • 1
  • 8
  • 19
  • 1
    If you add `li:first-child { margin-top: auto; }` it will work though – Asons Nov 18 '18 at 18:16
  • 1
    Possible duplicate of https://stackoverflow.com/questions/32551291/in-css-flexbox-why-are-there-no-justify-items-and-justify-self-properties?noredirect=1&lq=1 – Asons Nov 18 '18 at 18:27
  • wow, thanks dunno how I missed that – indiehjaerta Nov 18 '18 at 19:35