I don't have any decent reference books available and all I have been able to find online are convoluted descriptions involving multiple Style Sheets and so on. My requirements are simple so I hope we can keep the explanations the same.
The three important qualifiers are:
1. I have a single external style sheet and I'd rather not have more than that.
2. I can code my requirements per this question in-line if necessary but I'd rather have a class for, obviously, ease of use.
3. On my web page, at intervals throughout, are comments that only make sense on-screen, such as "Page Top" and "Click here to order now", etc.
And now the questions...
--------------------------
--------
Situation #1(a) - On Screen: Text reads "Page Top" or "Click here to order now" or something similar.
Situation #1(b) - Printed Output: None of the non-relevant text shows at all.
--------------------------
--------
Situation #2(a) - On Screen: Whitespace (i.e. a blank line) separates an element from the element above it. This is necessary to improve readability.
Situation #2(b) - Printed Output: A page break appears between these two elements, so I do not want a blank line appearing at the top of a printed page.
--------------------------
--------
Finally, and this may be part of the above, what's the best way to force a printed page break without the page-break code taking up any space, whether pronted or on-screen?
Remember ... SIMPLEST solution. No need to expand the code to make it more flexible. I'll figure the rest out as I go along, or I'll ask another question.
Thanks in advance,
- Bill H.
Start Free Trial