2011-08-05, 03:44 PM
Link: http://forumsource.org
CSS (of nav bar):
As you can see I've added text-align:center, but for some reason it never works. I did some researching and on W3Schools it said that text-align wouldn't make a difference when the width was 100% which mine is... So, is there anyway to resolve this and center the links, or is it impossible?
CSS (of nav bar):
.menu ul {
background:#000000 url(images/problue/nbg.png);
list-style-type:none;
width:100%;
height:50px;
margin:0;
padding:0;
}
.menu li {
float:left;
}
.menu ul a:link {
color:white;
display:block;
padding:15px;
text-align:center;
text-decoration:none;
}
.menu ul a:visited {
color:white;
display:block;
padding:15px;
text-align:center;
text-decoration:none;
}
.menu ul a:active {
color:white;
display:block;
padding:15px;
text-decoration:none;
}
.menu ul a:hover {
background:url(images/problue/nbgh.png);
height:20px;
}
As you can see I've added text-align:center, but for some reason it never works. I did some researching and on W3Schools it said that text-align wouldn't make a difference when the width was 100% which mine is... So, is there anyway to resolve this and center the links, or is it impossible?