I'm trying to set up a horizontal navigation menu using CSS - I have got a specified background image I want to use (124px wide) but I can't find a way of specifying how wide I want each tab to be.
Code is as follows:
As you can see I've put in width: 100px but this is not working at present.
Thanks
Code is as follows:
Code:
#navlist {
margin:0;
padding-top: 4px;
width: 100%;
}
#navlist li {
list-style-type: none;
display: inline;
margin: 2px 2px 0 2px;
width: 100px;
}
#navlist a, #navlist a:visited {
border-top: 2px solid #015697;
border-left: 2px solid #015697;
border-right: 2px solid #015697;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 1.1em;
text-align: center;
font-weight: bold;
text-decoration: none;
background-image: url(images/tab_bg01.jpg);
width: 100px;
color: #015697;
padding: 0.25em;
}
As you can see I've put in width: 100px but this is not working at present.
Thanks