473,505 Members | 16,332 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Detect Middle of Page and push content to next page

dlite922
1,584 Recognized Expert Top Contributor
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?

Expand|Select|Wrap|Line Numbers
  1.  
  2.  
  3.  
  4. // Example 1: Content is less than half of page:
  5. __________
  6. [         ]
  7. [ asdfadf ]
  8. [     $4 ]
  9. [     $6 ]
  10. [__________]
  11. [         ]
  12. [ asdfadf ]
  13. [     $4 ]
  14. [     $6 ]
  15. [__________]
  16.  
  17. // Example 2: Content is More Than a Half a Page Long: 
  18. __________     __________
  19. [         ] [         ] 
  20. [ asdfasdf ] [ asdfasdf ] 
  21. [         ] [         ] 
  22. [ asdfasdf ] [ asdfasdf ] 
  23. [         ] [         ] 
  24. [ asdfasdf ] [ asdfasdf ] 
  25. [         ] [         ] 
  26. [     $4 ] [     $4 ]
  27. [     $5 ] [     $5 ]
  28. [__________] [__________]
  29.  
  30. // Hopefully the above shows monospace. 
  31.  
  32.  
  33.  
Feb 14 '08 #1
1 1522
dlite922
1,584 Recognized Expert Top Contributor
monospace........NOOOOOOOT!!!

sorry but hopefully you get the point.
Feb 14 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

157
16241
by: Dennis | last post by:
Is there some way --using, say, DOM or javascript-- to detect the current pixel width and/or height of a relatively sized table or of one of its columns or rows. I'm going to be writing javascript...
5
2060
by: luke | last post by:
I need to have two different backgrounds, one on the left and one on the right of the screen, with the main content centered in the browser. This is the code I have come up with <table...
1
5352
by: Roy | last post by:
Hi, I have a problem that I have been working with for a while. I need to be able from server side (asp.net) to detect that the file i'm streaming down to the client is saved...
6
4841
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
9
1895
by: paul | last post by:
Hi All, We have a small dilemma. We have the following page: http://giggsey.com/m00Cow.php (don't ask about the content) that we want to turn into an interactive application for some new intake...
4
1458
by: Mark Siler | last post by:
First let me say I'm not a developer. I'm looking for someone that can either do this for me or point me to a technology that can. I'm in need of a way via the Internet to push a screen or webpage...
5
2438
by: smittie31 | last post by:
I am having a problem with a border around me html page. The border does not flow thru the whole html page, it cuts off halfway. --> See http://keithborom.com/marlon-sanders CSS STYLESHEET ...
2
3469
by: rhino | last post by:
I'm working on a layout that has a variable-height middle section and need some suggestions on how I can make the bottom section adapt to that situation. Basically, I have: - a fixed-length,...
11
4642
by: neovantage | last post by:
Hey all, I have recently started work on div based websites as suggested the great man acoder of this community advise me to learn divs. I made a page using div. In my page i want that content...
0
7218
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7103
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7307
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7021
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5035
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4701
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
409
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.