473,398 Members | 2,212 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,398 software developers and data experts.

Pagination Problem

I've been experimenting with pagination in the CSS for a print version of a
resume. I want to force the "Addendum" section of the resume to start on a
new page. The addendum begins with an H2 heading on the word Addendum so I
have this line in my HTML:

<h2 class="addendum">Addendum</h2>

and this in my CSS:

h2.addendum {page-break-before: always};

At the moment, I am testing in IE6 on Windows XP. When I go to the resume
and click on Print Preview, it shows that the Addendum is NOT starting on a
new page despite the CSS.

What am I doing wrong?

--
Rhino
Jul 21 '05 #1
3 6079
Oops, please ignore this post: I found the problem and the page-break-before
on the addendum is now working as desired.

Rhino

"Rhino" <rh****@NOSPAM.sympatico.ca> wrote in message
news:JX*********************@news20.bellglobal.com ...
I've been experimenting with pagination in the CSS for a print version of a resume. I want to force the "Addendum" section of the resume to start on a
new page. The addendum begins with an H2 heading on the word Addendum so I
have this line in my HTML:

<h2 class="addendum">Addendum</h2>

and this in my CSS:

h2.addendum {page-break-before: always};

At the moment, I am testing in IE6 on Windows XP. When I go to the resume
and click on Print Preview, it shows that the Addendum is NOT starting on a new page despite the CSS.

What am I doing wrong?

--
Rhino

Jul 21 '05 #2
Rhino wrote:
I've been experimenting with pagination in the CSS for a print version of a
resume. I want to force the "Addendum" section of the resume to start on a
new page. The addendum begins with an H2 heading on the word Addendum so I
have this line in my HTML:

<h2 class="addendum">Addendum</h2>

and this in my CSS:

h2.addendum {page-break-before: always};


The semicolon belongs before the brace, though I don't think that's
causing the problem.

Anyway, when you are asking for help debugging, you ought to provide a
link to the page in question. If you don't know where the problem lies,
then it's entirely possible that it lies somewhere other than in the
bits of code you happen to have provided.

A test page I created for myself works fine--even with the misplaced
semicolon.
Jul 21 '05 #3
Rhino wrote:
Oops, please ignore this post: I found the problem and the page-break-before
on the addendum is now working as desired.

Rhino
what did you do to fix it ?
"Rhino" <rh****@NOSPAM.sympatico.ca> wrote in message
news:JX*********************@news20.bellglobal.com ...
I've been experimenting with pagination in the CSS for a print version of


a
resume. I want to force the "Addendum" section of the resume to start on a
new page. The addendum begins with an H2 heading on the word Addendum so I
have this line in my HTML:

<h2 class="addendum">Addendum</h2>

and this in my CSS:

h2.addendum {page-break-before: always};

At the moment, I am testing in IE6 on Windows XP. When I go to the resume
and click on Print Preview, it shows that the Addendum is NOT starting on


a
new page despite the CSS.

What am I doing wrong?

--
Rhino


--
Bill Drescher
william {at} TechServSys {dot} com
Jul 21 '05 #4

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

Similar topics

2
by: Kurzman | last post by:
Let me know what you think about the following code: DECLARE @MaxIdValue int DECLARE @MaxSortFieldValue nvarchar(50) SELECT TOP 1 @MaxIdValue = , @MaxSortFieldValue = FROM ( SELECT TOP...
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. ...
0
by: Sheau Wei | last post by:
I am using php version 4.3.3. The below was my pagination code. My problem is that when i run this code in my computer, i wall fail because of the hyperlink of the pagination not function when i...
2
by: s4lin | last post by:
problem is pagination not retaining data field i have form with general data field, and i need to select some option which is store in database, so i open another page with retrieving data from...
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) ...
1
markrawlingson
by: markrawlingson | last post by:
Hello, For starters: Yes, I am new to asp.net, however I hold a good 9-10 years of experience working with classic asp and am only just now upgrading my skills. I'm picking asp.net up pretty...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.