I can't seem to get my footer navigation centered properly. I've tried adjusting the CSS but it's still not working as expected.
.main-footer li {
float: left;
font-size: 0.85em;
padding: 0 0.5em;
margin-bottom: 0.5em;
}
.main-footer {
text-align: center;
width: 100%;
background-color: lightblue;
padding: 2em;
margin-top: 30px;
}
<footer class="main-footer">
<ul>
<li><a href="#">Contact us</a></li>
<li>© Copyright Acme Industries 2019</li>
</ul>
</footer>
I've experimented with using display: block
or display: inline-block
in the CSS selectors but no luck so far. Any suggestions?
Many thanks, Kate