Align center for <ul></ul> ?

hoangvu

New member
Joined
Jun 6, 2012
Messages
1,834
Points
0
I have made nav-bar for my site
<div id="nav-bar">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">Forum</a></li>
<li><a href="#">Extensions</a></li>
</ul>
</div>
with css
nav-bar ul li{
display: inline;
boder-right: 1px solid #000000;
padding: 0px 4px;
}
nav-bar ul li:last-child{
border: none;
}
how to align center for <ul><ul> for that code ?

Thanks
 
Older threads
Replies
2
Views
5,533
Replies
11
Views
7,705
Replies
20
Views
11,840
Replies
2
Views
5,472
Replies
2
Views
5,068
Newer threads
Replies
2
Views
6,558
Replies
2
Views
5,995
Replies
33
Views
93,615
Replies
9
Views
8,796
Latest threads
Replies
0
Views
32
Replies
4
Views
889
Replies
2
Views
590
Replies
0
Views
790
Recommended threads
Replies
0
Views
2,757
Replies
8
Views
5,043
Replies
4
Views
2,096

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top