Align center for <ul></ul> ?

hoangvu

New member
Joined
Jun 6, 2012
Messages
1,888
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
 

webdesign

New member
Joined
Jul 5, 2012
Messages
234
Points
0
Using
a{
background: #FFFFFF url("picture.gif") left no-repeat;
}
a:hover{
background: #FFFFFF url("picture.gif") -16px no-repeat;
}
or
ul {
display: inline-block;
zoom: 1;
_display: inline;
}
cheers,
 
Older threads
Replies
2
Views
2,283
Replies
12
Views
5,836
Replies
20
Views
8,378
Replies
2
Views
4,230
Replies
2
Views
3,784
Newer threads
Replies
5
Views
3,079
Replies
2
Views
2,690
Replies
31
Views
26,163
Replies
9
Views
4,945
Latest threads
Replies
0
Views
11
Replies
4
Views
52
Recommended threads
Replies
14
Views
3,988
Replies
3
Views
2,359
Replies
5
Views
1,886

Referral contests

Referral link for :

Sponsors

Latest Blog ArticlesMost Viewed Threads

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