DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Hans has posted 19 posts at DZone. View Full User Profile

Word-style TOC With Roman- And Page-numbers

07.06.2006
| 1668 views |
  • submit to reddit
        
ol { list-style:upper-roman; }
li { 
	/* color depends */
	border-bottom:1px dashed black; 
} 

li span { 
	float:right; 
	padding-left:10px; 
}

li a { 
	text-decoration:none; 
	padding-right:10px; 
}

li a, li span {
	position:relative;		
	background:white; /* depends */
	top:2px;
}

source: http://blogger.xs4all.nl/peterned/archive/2006/06/30/103089.aspx