Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: horizontal page breaks

  1. #1
    Join Date
    Mar 2006
    Posts
    43
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default horizontal page breaks

    Hi,

    I haveweb page which contains a gantt chart that scrolls horitontally over multiple pages. when i print the page only the first page is printed.

    Is there anyway of placing horizontal page breaks in HTML??

  2. #2
    Join Date
    Oct 2006
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yes you can do that..

    insert this where you want it to break

    style="page-break-before: always"

  3. #3
    Join Date
    Mar 2006
    Posts
    43
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    that will only page break vertically and not horizontally
    ie my chart is too wide to print i need to break it into page sized chunks.

  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    I think your horitz and vertices are backwards

    Verticle is up and down, horizontal is side to side. The code above does horizontal, you want verticle
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  5. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I think you're thinking about it backwards from how he/she was, and I was too earlier.
    I believe that the OP is saying "breaks between two parts of the page that are horizontal from each other", so that the line of breaking is actually vertical, but the parts are horizontal.
    So... I think the answer for this is a table. divs, with enough css, can mimic this as well, but this is generally what tables are used for.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  6. #6
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Perhaps. I was thinking his/her page had an image like this:

    {______} and they wanted:

    {__}{__} when printed.


    dunno... long day, very confused! LMAO
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  7. #7
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    oh... hmm.. printing. now i'm confused too.
    and it has been a long day.

    //sleep.

    So... please explain a bit better.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  8. #8
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    yes, and in more technical terms, I think of an image that is 1600px wide, and they want to hit the print button and have the image print out multiple little images, like a puzzle, say 4 of them each 400px wide...

    A clarification from the OP will be most helpful.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  9. #9
    Join Date
    Mar 2006
    Posts
    43
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    sorry,
    you are right.....
    i meant i want it to break vertically as the chart is horizontally exceding the page size

    so as you state i need a method of breaking a html (no images) chart that scrolls horizontally off the page into smaller sections so that each section is printable.

    so even though the page is horizontally too big i guess i do need to be able to insert VERTICLE page breaks.....

  10. #10
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Hmm... that's tough.

    You could use tables, or divs.

    But the problem here is that, in short, your printer reads html. Therefore, anything is shows will be the same onscreen.

    you could just do a 100%, but that would be 100% of the screen.

    I think the solution would be to use a seperate page for printing, but those are hard to setup and not too compatible... there are a couple scripts here on DD that do it... might help.


    Also, if you just want the break... use tables. But that won't help with printing. Or you could try Divs on the same line. Something like that.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

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