473,657 Members | 2,437 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 1530
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
16365
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 to adjust my page to the viewer's browser window dimensions and this would sure be great information to have. Thanks .... Dennis
5
2067
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 border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td width="49%" background="left.gif"><img src="shim.gif" alt="" height="1" width="1"></td> <td width="2%" valign="top"> ALL CONTENT </td> <td width="49%" background="right.gif"><img...
1
5377
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 completely/succsessfully on the client's computer before updating some metadata on the server (file downloaded date for instance) However, All examples i have tried, and all examples I have found that other people says works - doesn't work for me :-(
6
4866
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 the html page controls the form fields that are required. It doesn't function like it's supposed to and I can leave all the fields blank and it still submits the form. Also I can't get it to transfer the file in the upload section. The file name...
9
1900
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 students at our school. However - we want to have multiple client PCs running a web interface that will allow them to type in their name / a message, and then this message appears on the "scroller" page, which will be on a projector.
4
1467
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 to a user. For example: If I'm speaking to you on the phone and I'm reviewing the purchase of a product and we are looking at options. I want to show you options X. I'd like to push you a webpage to your IP address. Then if I want to show you...
5
2448
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 /* CSS for Marlon Sanders site */ html, body {
2
3482
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, fixed-width top section which is just a graphic - a fixed-width _variable_height middle section which contains two columns, an index on the left and main content on the right - a fixed-length, fixed-width bottom section which is mostly a graphic...
11
4667
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 remain at the middle of the page no matter the dimensions of the page are. I mean if the page resolution is 1024 * 768 or 1154 * 864 or 1280 * 768 or 1280 * 1024 or 1600 * 1200, at every resolution the content of my site remain in the middle of the...
0
8310
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
7330
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6166
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4155
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4306
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1615
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.