Center an Unordered List

November 11, 2009

I’ve always thought centering LI elements was impossible. Here’s an basic example of how to do it:

#footer-menu { text-align:center; list-style-type:none; margin: 0; padding: 0; }
#footer-menu li { display:inline; padding: 0 10px; }

Stay in Touch!

Subscribe to our newsletter.

Solutions Architecture

browse through our blog articles

Blog Archive