Only by adding the numbers yourself with the DOM, as you suggest.
There is a method of doing this in css2, but only Opera supports counter
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>counter</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
ul {
list-style-type:none;
}
ul li:before {
content:counter(number) " ";
counter-increment:number;
}
-->
</style>
</head>
<body>
<ul>
<li>apple</li>
<li>banana</li>
<li>cranberry</li>
</ul>
</body>
</html>
At least 98% of internet users' DNA is identical to that of chimpanzees
Bookmarks