Detect Middle of Page and push content to next page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    Detect Middle of Page and push content to next page

    Hey Wsup guys,

    got a problem that right now i'm just scratching my head at.

    I have a dynamic receipt/invoice that USUALLY (99%) of the time takes up Half of the page at most.

    My clients wants to have TWO copies on the same page. He's got a special printer and paper where the page the 8.5" x 11" standart letter pager is cut in half across the middle from left to right, horizontally.

    I've seen with CSS you can push the content to the next page,
    How can i apply this to method where the middle of the page is "detected".

    If it ever happen to cross the middle of the page, it would print on separte pages.

    Does this make sense?

    Code:
     
     
     
    // Example 1: Content is less than half of page:
    __________
    [		 ]
    [ asdfadf ]
    [	 $4 ]
    [	 $6 ]
    [__________]
    [		 ]
    [ asdfadf ]
    [	 $4 ]
    [	 $6 ]
    [__________]
     
    // Example 2: Content is More Than a Half a Page Long: 
    __________	 __________
    [		 ] [		 ] 
    [ asdfasdf ] [ asdfasdf ] 
    [		 ] [		 ] 
    [ asdfasdf ] [ asdfasdf ] 
    [		 ] [		 ] 
    [ asdfasdf ] [ asdfasdf ] 
    [		 ] [		 ] 
    [	 $4 ] [	 $4 ]
    [	 $5 ] [	 $5 ]
    [__________] [__________]
     
    // Hopefully the above shows monospace.
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    monospace...... ..NOOOOOOOT!!!

    sorry but hopefully you get the point.

    Comment

    Working...