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 to the CF scene
    Join Date
    Aug 2002
    Location
    Brasil
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Page-break Printing an HTML Table

    Hi all, i'm new at all in XML / CSS.

    I have an HTML table, it show a XML file using CSS.

    My question is this, how i can tell the bowser to print the <thread> of the table in every page printing, it must have 50 line per page and after that make a page-break?

    I see this at css help:

    @page {size: 8in, 11in}
    table.big {window:50 ; page-break:always}

    but this not work. How i print the header of the table + 50 lines per page?

    Thanks in advance and sorry for my english, i hope you can understand.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Depends on the time of year
    Posts
    478
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm not sure how you would do the "50" lines part, but you could check out the

    page-break-before

    OR

    page-break-after

    eg.

    <style>
    p {page-break-after: always}
    </style>

    means that there will always be a new page printed after <p>

    As for the number of lines, you can try the height property though i'm not sure its compliant with all browsers.

    Duniyadnd

  • #3
    New to the CF scene
    Join Date
    Aug 2002
    Location
    Brasil
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up Thanks for answer

    I'll try it!

    Daniela

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    Depends on the time of year
    Posts
    478
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hey Daniela, if you're familiar with Php, this thread might give you some hints on how to create a page break after a certain number lines. Hope it helps, and hope you know php to find it useful.

    http://www.codingforums.com/showthre...&threadid=5186

    Duniyadnd


  •  

    Posting Permissions

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