473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Pagination questions

I would like to make a CSS for an HTML resume that ensures that page breaks
come at desired places within the printed version. I know about
page-break-before, page-break-after, etc. but I'm still confused about the
basic techniques of pagination in CSS.

I expect the vast majority of people viewing the resume to be in North
America and to use 8.5 inch X 11 inch paper when printing the resume but how
can I have any idea what margins, fonts (and font sizes), and "extra
information" (file name, date, page numbers, etc.) they have set up in their
browsers and/or printer drivers? And what if some of them are European
companies with North American offices and just happen to use A4 or some
other European page size as a company wide standard?

Some people viewing the resume might not be very computer literate and not
know how to adjust their own settings so it's probably unrealistic for me to
suggest that they change all their print settings to particular values.
Others may be running very old browsers that don't support much CSS or old
printers that don't offer much control.

How do I figure out where to put the page breaks? If I don't know how long
the usable portion of the page is (or, to a lesser extent, how wide it is),
how can I know where to put the page breaks to optimize the use of paper?

Also, I see that page breaks within tables are discouraged
(http://www.blooberry.com/indexdot/cs.../pbbefore.htm).
Unfortunately, the resume has a longish table - Employment History - near
the top and it is unlikely that it will fit within a single page. What "bad
things" are likely to happen if I do a page break within the page? Also,
what behaviour can I expect if I give a value of "avoid"? The description
says "Avoid inserting a page break before the current element box." Does
this mean there will NEVER be a page break before the current box? That
seems unlikely since then I don't see how it would be different from "auto".
Can anyone enlighten me?

Lastly, at the risk of complicating this CSS dramatically, is there any way
that the CSS can determine the user's various settings so that it can
determine just how much room it has so it can set the page breaks
dynamically? That way, I could conceivably compute exactly how much text I
could put on the page so that I could choose the optimum place for a page
break. If this is possible, could someone point me to a tutorial or
well-explained example of this? It's not that I *want* to do something this
complex but it is important for the resume to break in appropriate places
when it is printed so I might be willing to attempt this approach if no one
can suggest a better solution.
--
Rhino
Jul 21 '05 #1
2 2493
Rhino wrote:
I would like to make a CSS for an HTML resume that ensures that page breaks
come at desired places within the printed version. I know about
page-break-before, page-break-after, etc. but I'm still confused about the
basic techniques of pagination in CSS.

I expect the vast majority of people viewing the resume to be in North
America and to use 8.5 inch X 11 inch paper when printing the resume but how
can I have any idea what margins, fonts (and font sizes), and "extra
information" (file name, date, page numbers, etc.) they have set up in their
browsers and/or printer drivers?
You can't. Period.
And what if some of them are European
companies with North American offices and just happen to use A4 or some
other European page size as a company wide standard?

Some people viewing the resume might not be very computer literate and not
know how to adjust their own settings so it's probably unrealistic for me to
suggest that they change all their print settings to particular values.
Others may be running very old browsers that don't support much CSS or old
printers that don't offer much control.
This isn't an especially browser-related problem. Exactly the same
issues exist when you send a Word document or a PDF that has been
formatted for 8-1/2 x 11 to someone who uses A4.

How do I figure out where to put the page breaks? If I don't know how long
the usable portion of the page is (or, to a lesser extent, how wide it is),
how can I know where to put the page breaks to optimize the use of paper?
I think your best bet is not to bother. Besides, if prospective employes
are looking at resumes on the web and then printing them out, then
they're not *expecting* typeset-quality documents.

[snip]
Lastly, at the risk of complicating this CSS dramatically, is there any way
that the CSS can determine the user's various settings so that it can
determine just how much room it has so it can set the page breaks
dynamically?
Again, no. All you can do is specify what you'd like to have happen.
It's up to the application to apply those specifications in whatever way
it's been designed to do so, including making any modifications to
default print settings that it may have been designed to make.
That way, I could conceivably compute exactly how much text I
could put on the page so that I could choose the optimum place for a page
break. If this is possible, could someone point me to a tutorial or
well-explained example of this? It's not that I *want* to do something this
complex but it is important
Really? I've never seen a resume where it was important, and I've
printed out many on-line resumes. How is yours different?
for the resume to break in appropriate places
when it is printed so I might be willing to attempt this approach if no one
can suggest a better solution.

Jul 21 '05 #2

"Harlan Messinger" <hm*******************@comcast.net> wrote in message
news:35*************@individual.net...
Rhino wrote:
I would like to make a CSS for an HTML resume that ensures that page breaks come at desired places within the printed version. I know about
page-break-before, page-break-after, etc. but I'm still confused about the basic techniques of pagination in CSS.

I expect the vast majority of people viewing the resume to be in North
America and to use 8.5 inch X 11 inch paper when printing the resume but how can I have any idea what margins, fonts (and font sizes), and "extra
information" (file name, date, page numbers, etc.) they have set up in their browsers and/or printer drivers?
You can't. Period.

That's what I suspected.
And what if some of them are European
companies with North American offices and just happen to use A4 or some
other European page size as a company wide standard?

Some people viewing the resume might not be very computer literate and not know how to adjust their own settings so it's probably unrealistic for me to suggest that they change all their print settings to particular values.
Others may be running very old browsers that don't support much CSS or old printers that don't offer much control.


This isn't an especially browser-related problem. Exactly the same
issues exist when you send a Word document or a PDF that has been
formatted for 8-1/2 x 11 to someone who uses A4.

Agreed.

How do I figure out where to put the page breaks? If I don't know how long the usable portion of the page is (or, to a lesser extent, how wide it is), how can I know where to put the page breaks to optimize the use of paper?
I think your best bet is not to bother. Besides, if prospective employes
are looking at resumes on the web and then printing them out, then
they're not *expecting* typeset-quality documents.
Good point.
Lastly, at the risk of complicating this CSS dramatically, is there any

way that the CSS can determine the user's various settings so that it can
determine just how much room it has so it can set the page breaks
dynamically?


Again, no. All you can do is specify what you'd like to have happen.
It's up to the application to apply those specifications in whatever way
it's been designed to do so, including making any modifications to
default print settings that it may have been designed to make.

Again, pretty much what I expected....
> That way, I could conceivably compute exactly how much text I
could put on the page so that I could choose the optimum place for a page break. If this is possible, could someone point me to a tutorial or
well-explained example of this? It's not that I *want* to do something this complex but it is important


Really? I've never seen a resume where it was important, and I've
printed out many on-line resumes. How is yours different?

Okay, maybe "important" was too strong a word. A friend was looking at the
resume and complaining that one section broke in the middle and would have
looked a lot better if it had not been split.
for the resume to break in appropriate places
when it is printed so I might be willing to attempt this approach if no one can suggest a better solution.


Thanks for your help with this!

Rhino
Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Andy Glew | last post by:
I have long looked for (and occasionally posted questions to groups such as this about) a tool that can take a group of HTML pages (nowadays XHTML, or XML) and produce a nicely formatted...
2
by: Chris H | last post by:
I am having a problem with pagination, basically the problem is happening in the "PREV / NUMBERS / NEXT" links, it appears as if the reason is becasue the increment and decrement operators aren't...
11
by: ste | last post by:
Hi there, Further to my recent posts where I've received excellent help from Rik and Jerry, I've ended up with an image gallery on my website that displays images in a table, 3 images per row. ...
1
by: Ed Jay | last post by:
I generate a DHTML page (a medical report) with dynamically generated text based on user input (answers to questions). The page length changes dynamically. I desire that when the page is printed...
4
by: Ed Jay | last post by:
I generate a DHTML page (a medical report) with dynamically generated text based on user input (answers to questions). The page length changes dynamically. I desire that when the page is printed...
1
by: shalini jain | last post by:
Hi, I want to know how can we do pagination using XSL. There are number of tutorials available on pagination using PHP but nothing with XSL. i am really stuck with my code. Below is the code that...
16
by: gnawz | last post by:
I have a pagination function I am using in a file called functions.php as below<? //Pagination functions function getPagingQuery($sql, $itemPerPage = 10) { if (isset($_GET) && (int)$_GET > 0) ...
4
by: ArizonaJohn | last post by:
Hello, The code below works great. The user enters a name into an HTML form, the code looks up a table with that name, and then that table is displayed. I am trying to use pagination with it,...
2
by: kkshansid | last post by:
this is my search page on which i am getting two parameters from previous page but the problem is that as soon as i click any other next pages my sql query fails as it doesnt get these two parameters...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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,...
0
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...
0
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...

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.