/    Sign up×
Community /Pin to ProfileBookmark

how to center links on my footer?

<!–Footer–>
<footer>
<ul class= “mainfooter”>
<li><a href=”index.html”>Home</a></li>
<li><a href=”about.html”>About</a></li>
<li><a href=”events.html”>Events</a></li>
<li><a href=”news.html”>News</a></li>
<li><a href=”contact.html”>Contact</a></li>

</ul>

</footer>

this is what i have

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@SempervivumMar 12.2016 — Try this:

HTML:[code=html]<ul class= "mainfooter">
<li class="lifooter"><a href="index.html">Home</a></li>
<li class="lifooter"><a href="about.html">About</a></li>
<li class="lifooter"><a href="events.html">Events</a></li>
<li class="lifooter"><a href="news.html">News</a></li>
<li class="lifooter"><a href="contact.html">Contact</a></li>
</ul>[/code]


CSS:
[code=html] .mainfooter {
text-align: center;
}
.lifooter {
display: inline-block;
}
[/code]
Copy linkTweet thisAlerts:
@3wCornerMar 15.2016 — Try this:

footer {

background: none repeat scroll 0 0 transparent;

bottom: 0;

position: fixed;

text-align: center;

width: 100%;

}
×

Success!

Help @soupi spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...