Center a UL in a Div

Default display value is "block", so need to change it to "inline-block"

.page_nav{text-align:center; position:relative;}
.page_nav ul{padding:0; margin:0 auto; list-style:none; overflow:hidden; display:inline-block}
.page_nav ul li{float:left;  margin:0 10px 0 0;}

 

One thought on “Center a UL in a Div

  1. Amazing things here. I am very glad to peer your post.

    Thank you a lot and I am having a look ahead to contact you.
    Will you please drop me a mail?

Comments are closed.