Forums

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

Home Forums CSS How to center menu and footer bar? Reply To: How to center menu and footer bar?

#171223
__
Participant

I change it to block but nothing happened

Did you also apply the margin?

Here’s a codepen. I removed the display:table and added margin:0 auto. (I also removed the height on your #site-navigation, since it was too short and cut off the menu contents.)

You can take a similar approach to centering your footer.