Forum Moderators: not2easy
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<style type="text/css">
<!--
ul#archives {
width: 300px;
}
ul#archives li {
font-size: 15px;
padding: 10px 0;
border-bottom: 1px dotted #c7cccf;
}
ul#archives li li {
font-size: 13px;
padding: 3px 0;
border: none;
text-indent: 30px;
}
ul#archives li span {
float: right;
font-size: 11px;
vertical-align: middle;
background-color: #aba59e;
-webkit-border-radius: 12px;
-moz-border-radius: 12px;
border-radius: 12px;
padding: 2px 4px;
color: #fff;
line-height: 13px;
min-width: 25px;
text-align: center;
font-weight: bold;
}
-->
</style>
<title></title>
</head>
<body>
<ul id="archives">
<li class="year"><a href="#">2010</a><span class="amount">3</span></li>
<li class="months">
<ul>
<li><a href="#">December (8)</a></li>
<li><a href="#">November (8)</a></li>
</ul>
</li>
</ul>
</body>
</html>
<li class="year"><span class="amount">3</span><a href="#">2010</a></li>
ul#archives{margin:0;padding:0 0 0 1em;}
ul#archives li{
min-height:0;/* force haslayout */
vertical-align:middle;/* nonsense rule but still aligns the bullet in IE7*/
}
ul#archives .year a {float: left; width: 100%; margin-right: -100%;}
.year a may be enough
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<!--[if IE 7]>
<style type="text/css">
<!--
ul#archives li span.year {
float: left
}
-->
</style>
<![endif]-->
<style type="text/css">
<!--
ul#archives {
width: 300px;
}
ul#archives li {
font-size: 15px;
padding: 10px 0;
border-bottom: 1px dotted #c7cccf;
}
ul#archives li li {
font-size: 13px;
padding: 3px 0;
border: none;
text-indent: 30px;
}
ul#archives li span.amount {
float: right;
font-size: 11px;
vertical-align: middle;
background-color: #aba59e;
-webkit-border-radius: 12px;
-moz-border-radius: 12px;
border-radius: 12px;
padding: 2px 4px;
color: #fff;
line-height: 13px;
min-width: 25px;
text-align: center;
font-weight: bold;
}
-->
</style>
<title></title>
</head>
<body>
<ul id="archives">
<li class="year-ctn"><a href="#"><span class="year">2010</span><span class="amount">3</span></a></li>
<li class="months">
<ul>
<li><a href="#">December (8)</a></li>
<li><a href="#">November (8)</a></li>
</ul>
</li>
</ul>
</body>
</html>