programming-examples/css/Counter format.html
2019-11-15 12:59:38 +01:00

36 lines
851 B
HTML

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Counter Format</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type='text/css'>
ol {counter-reset: item }
li {display:block;}
li:before {
counter-increment: item ;
content: counters(item, ".") " ";
}
</style>
</head>
<body>
<ol>
<li>Phone Number 1</li>
<li>Phone Number 2
<ol>
<li>Phone Number 3</li>
<li>Phone Number 4
<ol>
<li>Phone Number 5</li>
<li>Phone Number 6</li>
</ol>
</li>
<li>Phone Number 7</li>
</ol>
</li>
<li>Phone Number 8</li>
</ol>
</body>
</html>