Forum How do I...?

Using leaders not in TOC

acmdas
I have a questionnaire that I need to format:

                                                         Yes      No
  This is my question.................................... 1       0
  This is another question............................... 1       0

Is that something that I'll learn to do when I get the updated Hakon Lie book, or it is an appropriate question for this forum? My application seems to differ from the TOC examples in that there are two values after the leader, and the values aren't generated content.

Thanks for any hints...[/quote]

David

mikeday
Hi David,

You can achieve this layout by inserting a leader in the appropriate position, like this:
span.leader { content: leader('.') }

<p>
This is my question <span class="leader"></span> 1 0 <br/>
This is another question <span class="leader"></span> 1 0<br/>
...

Best regards,

Michael
acmdas
Thank you very much, Michael.

I'm sure to have more questions, but will refrain from posting any until I've "read, marked and inwardly digested" the book.

David

David