I'm trying to create a table of contents in html in the form of
Introduction.................................1
Heading 1....................................1
Heading 2....................................2
Now I'd like the ... to go from the last character in the title to the number of the right.
I can get this working sort of in a table with a single tr and two tds (one for the title and one for the page number) with a border-bottom on the first td, however the .. goes across the entire border instead of just from the last character.
Is there a better way I can represent this in html?
As to why I'm doing this in HTML we are exporting it to a HTML-> PDF converter so it has to be HTML.
This is what I have so far
<h1>Contents</h1>
<ul>
<li>
<table style="width:100%">
<tr style="">
<td>System Overview Manual..adn the dog went to the zoo and had a really good time and it was really really good.</td>
<td style="text-align: right; "> <span id='contents1'>2</span>
</td>
</tr>
</table>
</li>
</ul>
Fiddle: http://jsfiddle.net/EBhAX/