Hopefully this is something really simple that I'm just overlooking... I have my navigation in a div labeled "menu" and each link is defined as an <li> within a <ul>. Here is the html
My CSS looks like this
The problem: the background color for the links does not stretch the entire 100px, it just stops where the text cuts off. I can't connect to my server at the moment for some reason, but i will attach a screen shot in a few minutes
Code:
<div id="menu">
<ul>
<li><a href="#">link 1</a></li>
<li><a href="#">link 2</a></li>
<li><a href="#">link 3</a></li>
<li><a href="#">link 4</a></li>
<li><a href="#">link 5</a></li>
</ul>
</div>
My CSS looks like this
Code:
#menu {
position: absolute;
margin: 0px;
padding: 0px;
width: 100px;
background: #000000;
top: 105px;
}
#menu ul {
margin: 0px;
border-width: 0px;
padding: 0px;
}
#menu li {
display: list-item;
list-style: none;
border-width: 0px;
width: 100px;
padding-top: 5px;
padding-bottom: 5px;
padding-left: 2px;
}
#menu li a {
height: 20px;
display: inline;
padding-top: 5px;
padding-bottom: 5px;
padding-left: 2px;
}
#menu li a, a:active, a:link {
color: #ffffff;
font-size: 90%;
text-decoration: none;
font-weight: bold;
background: #7e1e15;
}
#menu li a:hover {
color: #ffffff;
font-size: 90%;
text-decoration: none;
font-weight: bold;
background: #b8b54d;
}
The problem: the background color for the links does not stretch the entire 100px, it just stops where the text cuts off. I can't connect to my server at the moment for some reason, but i will attach a screen shot in a few minutes