Align center for <ul></ul> ?

Marc0

Well-known member
Registered
Joined
Jun 6, 2012
Messages
890
Points
28
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

Well-known member
Joined
Jul 5, 2012
Messages
120
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
3,649
Replies
14
Views
6,926
Replies
19
Views
9,236
Replies
4
Views
3,197
Newer Threads
Latest Threads
Replies
0
Views
20
Replies
0
Views
41
Replies
1
Views
42
Replies
0
Views
237
Recommended Threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

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