First of all, get rid of
Code:
#headlinks2, #headlinks2 ul {
padding: 0;
margin: 0;
list-style: none;
}
- this is over-riding any margins set earlier. Add the list-style to the <li>s as such
Code:
#headlinks2 li {
float: left;
width: 100px;
list-style: none;
}
and get rid of default browser paddings and margins using
Code:
*{
margin: 0;
padding: 0;
}
at the START of your css
Therefore complete css is
Code:
*{
margin: 0;
padding: 0;
}
#headlinks2 {
height: 25px;
margin-left: 50px;
}
#headlinks2 a {
color:green;
display: block;
text-decoration:none;
width: 100px;
font-size:13pt;
padding-right:5px;
}
#headlinks2 a:hover {
color: red;
}
#headlinks2 li {
float: left;
width: 100px;
list-style: none;
}
#headlinks2 li ul {
position: absolute;
width: 100px;
left: -999em;
}
#headlinks2 li:hover ul, #headlinks2 li.sfhover ul {
left: auto;
}
The div #headlinks2 should also be chaged to <ul> tags - you have a heap of <li>s without a parent <ul>. No div is actually required - you can apply your margins etc to the #headlinks2 <ul>
Cheers
Graeme
Bookmarks