I'm having a bit of trouble figuring something out. I have a css file I use to attempt to break pages in the correct spot, and to force a landscape print so as to ensure that the words on the web reports my php program builds aren't packed together when printed out. The following is a complete copy of the text of the css file I use to
do this-
p { page-break-before: always;}
@page
{
size landscape;
}
The css file is called from my program with the following command-
echo '<link rel="stylesheet" type="text/css" href="cancelheader.css"/>';
For some reason, I'm now having trouble getting this to work on a new program. As far as I can tell, the only differences are that a) the new program includes others that also make use of the page-break function, and b) the new files are in a different directory from the original css file. A copy of the css file has been placed in this directory, however.
Before, I've always used a single php file; now, I've got three separate files that get called from a single higher one. With this program, I cannot get the pagebreaks to occur when they are supposed to according to the css file.
I have tried the following to attempt to solve this:
1) Each of the original files included the reference to the css file. I commented those out, leaving instead a single copy in the higher-level file that calls(includes) them. This has not helped. Even a <p/> tag within the higher-level file does not break the way it should.
2) I tried to clear the cache, in hopes of solving the problem that way. This has not worked.
3) I closed down all browser windows (I thought this only applied to sessions, but I wanted to make certain) then opened up a new one and loaded the page again. This did not work.
I am using Firefox, version 1.5.0.12, to load the page.
Does anyone have any suggestions what my problem here might be, or solutions as to other things I can try to solve it?