I can't seem to figure out why the text-align center isn't working. I've followed other tutorials and applied the textalign: center
to the div, then added display: inline
to the ul.
Below is a sample of my HTML code from the browser as I am working on a WordPress theme:
#footer-nav.collapse.navbar-collapse {
text-align: center;
font-size: 16px;
color: #383434;
margin-top: 30px;
margin-bottom: 30px
}
div#footer-nav ul#menu-footer {
display: inline-block;
}
ul#menu-footer li {
padding: 0px 15px 0px 15px;
}
<div id="footer-nav" class="collapse navbar-collapse">
<ul id="menu-footer" class="nav navbar-nav">
<li id="menu-item-289" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-289"><a title="About" href="http://localhost/eat-sleep-kayak-wp/about/">About</a>
</li>
<li id="menu-item-366" class="menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-305 current_page_item current_page_parent menu-item-366 active"><a title="Blog" href="http://localhost/eat-sleep-kayak-wp/blog/">Blog</a>
</li>
<li id="menu-item-290" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-290"><a title="Newsletter" href="http://localhost/eat-sleep-kayak-wp/newsletter/">Newsletter</a>
</li>
<li id="menu-item-365" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-365"><a title="Advertise" href="http://localhost/eat-sleep-kayak-wp/advertise/">Advertise</a>
</li>
<li id="menu-item-288" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-288"><a title="Contact" href="http://localhost/eat-sleep-kayak-wp/contact/">Contact</a>
</li>
</ul>
</div>