View Full Version : PHP calendar lines not printing
richardlpalmer
03-25-2003, 05:03 PM
I have this page I'm working on where a PHP calendar resides. I've added a "Print" button so the calendar can be made hard copy for users.
The calendar prints alright, but the lines don't. Could you have a look at the code and see what I'm missing?
http://www.freedomschool.net/main.php
I don't see what I'm missing here...
Spookster
03-25-2003, 05:14 PM
This isn't going to be a PHP issue as PHP does not affect how your page prints. By lines I assume you mean the borders in your table. Your borders are defined via CSS here:
TABLE.cal
{
BACKGROUND-COLOR: blue;
BORDER-BOTTOM: 3px;
BORDER-LEFT: 3px;
BORDER-RIGHT: 3px;
BORDER-TOP: 3px;
COLOR: lime;
FONT-FAMILY: sans-serif;
FONT-COLOR: VELVET;
HEIGHT: 600px;
WIDTH: 90%
}
You are simply using javascript to invoke the browsers print function. This is most likely an HTML/CSS issue so I will move you to that forum....
richardlpalmer
03-25-2003, 05:49 PM
Thank you very much for the guidance.
richardlpalmer
03-29-2003, 07:23 AM
Any suggestions on this?
Spookster
03-29-2003, 04:13 PM
I would guess that there is some kind of printing issue when it comes to using CSS. Which browser(s) and version(s) is this happening in? The one area that browser makers never fully perfected was printing. That's one of the reasons you see so many sites that have printer friendly versions of their pages. They remove much of the rest of the layout and other stuff so it will print better.
richardlpalmer
03-29-2003, 05:32 PM
Thanks for that. I was thinking I had man an error/omission. And while that may have occurred it might also be the browser itself.
After your post I decided to check it out with other browsers. I'd only tested it with IE6 up to this point.
Opera 6 was horrible -- the worst by far. In fact it doesn't even print the calendar but instead it prints various parts of the page all jumbled up.
Mozilla 5 worked just like IE6.
Maybe it just won't work...
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.