I am having an issue with a div that contains floated links. Despite setting the property and value of 'width:auto' to the div, it seems to be taking up the entire line instead of adjusting to the total width of the floated elements. Can anyone spot what I might be doing wrong?
JSFIDDLE: http://jsfiddle.net/X9anU/3/
CSS:
#user-links {
margin-right: auto;
margin-left: auto;
height: auto;
width: auto;
padding: 0px 0px 0px 0px;
overflow: auto;
}
.user-link {
float: left;
margin: 0px 0px 0px 0px;
padding: 0px 10px 0px 10px;
}
.user-link a {
text-decoration: none;
font-family: calibri;
font-size: 16px;
color: #fff;
}
.user-link a:hover {
text-decoration: underline;
}