Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old July 21st, 2004, 11:44 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
CSS print

Hi,

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 <link rel="stylesheet" type="text/css" href="print.css" media="print"> 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.

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?

Many thanks

Reply With Quote
  #2  
Old July 22nd, 2004, 03:34 AM
jam wil jam wil is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Canada, eh?
Posts: 364 jam wil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: CSS print

on your print stylesheet, just change the width attribute to 100%. That will it will take up the entire width of the sheet, with out going over...

Reply With Quote
  #3  
Old July 22nd, 2004, 08:44 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: CSS print

I define a <div id="page"> </div> in my html, which includes all the content of my page.

Then, in my print.css I put this:

#page {
width:100%;
background:#FFFFFF;
border-top: 0;
margin: 0;
padding: 0;
}

But it is not working...

Reply With Quote
  #4  
Old July 23rd, 2004, 02:29 AM
jam wil jam wil is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Canada, eh?
Posts: 364 jam wil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: CSS print

I don't know... I would take out the margin and padding stuff and just leave the 100%... Try that, oh, and are you trying to print an image (or images) that are too wide? that might be what's causing your problem...

Reply With Quote
  #5  
Old July 23rd, 2004, 09:01 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: CSS print

I left just the 100%, but it is still the same.

It is not a problem of image, because if I change manually the margin in the page settings, and reduce it at 5mm, then it is printed correclty.

Reply With Quote
  #6  
Old July 23rd, 2004, 08:14 PM
jam wil jam wil is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Canada, eh?
Posts: 364 jam wil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: CSS print

huh... you got me stumped, sorry I couldn't be of more help...

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > CSS print


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway