Wow @Johani! That worked great on my Discourse installation! Unfortunately when I tried to apply it to my Wordpress site, it broke my header, so I’ve had to revert back to my old code .
I can see how flexbox would be the best practice here, but I’m wondering if there’s a way to hack the code i’m currently using because that code is working and perfectly matched on my WP site.