The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Struggling to vertical center content Reply To: Struggling to vertical center content


Thanks for the reply @Shikkediel. I’ve changed the layout slightly and have run into the same exact problem. I tried to do something similar with the code you suggested but ran into issues when scaling the nav down to mobile.

Can you please take a look? Ideally, I’d like to vertically center both the menu items / the logo / the menu icon. It would be super helpful to hear your reason for why you used certain code.

Thanks so much for the help. :)

TLDR: Having trouble centering all content in 100px header at top of page. Need to center logo, nav items and nav icon on mobile. :)