Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- List item with number alignment


birdbrain - 10:04 am on Jun 3, 2011 (gmt 0)


Hi there greencode,

try this amendment, it will give you far greater control of the elements...


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="language" content="english">
<meta http-equiv="Content-Style-Type" content="text/css">

<title></title>

<style type="text/css">
#subnav ul li {
display:inline-block;
font-size:16px;
font-weight:bold;
line-height:36px;
margin-right:25px;
}
#subnav ul li a {
display:block;
padding:0 12px;
text-decoration:none;
}
#subnav ul li a #m {
text-decoration:underline;
}
#subnav ul li a #n {
float:right;
line-height:1.2;
font-size:11px;
color:#fff;
background-color:#aba59e;
-webkit-border-radius:8px;
-moz-border-radius:8px;
border-radius:8px;
margin:6px 0 0 5px;
padding:2px 5px;
}
#subnav ul li a:hover{
background-color:#797979;
-webkit-border-radius:20px;
-moz-border-radius:20px;
border-radius:20px;
color:#fff;
}
</style>

</head>
<body>

<div id="subnav">
<ul>
<li><a href="#"><span id="m">Messages</span><span id="n">100</span></a></li>
</ul>
</div>

</body>
</html>

birdbrain


Thread source:: http://www.webmasterworld.com/css/4321248.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com