Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jun 2008
    Posts
    76
    Thanks
    6
    Thanked 6 Times in 6 Posts

    dynamic page numbers for a table of content

    Hi there I'm looking at trying to create a dynamic page numbers for a table of content when my HTML document is been printed i thought this may be possible as your able to apply different style sheets when printing a document with CSS.

    But I have the sneaking feeling that this may have to be a JavaScript task.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,853
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Um.. you referred your document as "table of contents", though just wondering whether you can make use of ordered list?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New Coder
    Join Date
    Jun 2008
    Posts
    76
    Thanks
    6
    Thanked 6 Times in 6 Posts
    You could make use of an ordered list but then the numbers don't actual line up with the page that the header is been printed on for example <h3>Heading I am </h3> could be on page 25 for example but if i had it in the ordered list that could be item 20 in the ordered list that doesn't actual line the page details up correctly

    you also have to keep in mind that the page are dynamic there content is never on the same page twice depending on content size of course
    Last edited by kieran491; 11-09-2009 at 10:54 AM. Reason: Addition

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,853
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Sorry, I misread your post (thought your were talking about the serial numbers on left). I don't have an answerer to you.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •