Thread: CSS Print stylesheet
Results 1 to 8 of 8
How do make my cascading stylesheet work? Forum: CSS ForumReplies: 6
print stylesheet question Forum: CSS ForumReplies: 1
Stylesheet/table problem Forum: CSS ForumReplies: 3
Stylesheet producing ugly tables Forum: CSS ForumReplies: 6
My stylesheet is being partially ignored Forum: CSS ForumReplies: 2
07-21-2004, 08:00 AM #1
CSS Print stylesheet
All the content of my web page is in a table which is 760 pixels width.
This is fine on the screen, but when printing, the right part is cut.
I tried to set a new css print stylesheet to avoid this problem, but it is not working.
I tried to change the margin and padding, but there is no change. I still have the same problem.
<link rel="stylesheet" type="text/css" href="print.css" media="print">
I tried many different configurations, but none of them worked... I did probably something wrong.
I know that the page is properly printed if I change manually the print setting (file -> page setting) margin to 5mm, but how can I do it with the css, in order than everybody who would like to print the page has the complete page printed?
Could someone help me?
07-21-2004, 05:21 PM #2
Could I have a link to the webpage?
07-22-2004, 04:34 AM #3
It is not yet online...
But as an example, you can take this page.
If you try to print this page, you can see the same problem. The right part is cut.
How to configure a print.css to change the margin of the page, in order to have everything printed (everything should be displayed).
07-22-2004, 11:07 AM #4
Set a margin in your print.css. Or change the width of the table in your print.css
07-22-2004, 03:41 PM #5
I tried to set the margin, but it is not working.
I defined a <div id="page"> </div> in my html, which includes all the content of my page.
Then, in my print.css I put this:
But it is not working... I still have the default margin. It doesn't change the left and right margin.
You said that I can change the width of the table in my print.css. But how can I do that?
Here is my html code:
<table width="760" border="0" cellspacing="0" cellpadding="0">
Can I have a different width when I print my page, than on screen?
Could you please explain to me how to do that? I'll try.
07-22-2004, 04:31 PM #6
to width: 75%;
see what happens.
07-23-2004, 04:49 AM #7
No difference between 100% and 75%...
07-23-2004, 05:13 AM #8
Okay. Could you upload the website somewhere temporarilly? Otherwise, I'm just guessing and we could be here for weeks