Home › Forums › CSS › How to center menu and footer bar? › Reply To: How to center menu and footer bar?
May 27, 2014 at 10:57 pm
#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.