Forum Moderators: not2easy
I'm having trouble assigning a width to an li. I have tried a variety of different things but the widths never change. I have an inline navigation across the top of the page. Can you see what I'm missing? Has it got something to do with the positioning or are my other tags breaking it?
Cheers and many thanks,
Batty :)
My code is:
<div id="topnav">
<ul>
<li><a href="#">First</a></li>
<li><a href="#">Second</a></li>
<li><a href="#">Third</a></li>
</ul>
</div> And the css is
#topnav {
background-image: url(images/topnav.gif);
background-repeat: no-repeat;
position: absolute;
visibility: visible;
width: 620px;
height: 22px;
left: 125px;
top: 60px;
z-index: 2;
}
#topnav li {
position: relative;
display: inline;
margin: 0;
padding: 10px;
background-image: url(images/spot.gif);
background-repeat: no-repeat;
background-position: 0 50%;
width: 400px;
}
#topnav li a {
color: #ff4bae;
text-decoration:none;
padding: 5px;
}
Can you tell me what float means?