|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
can you tell me the url to the site??
so i may see where it`s wrong.. |
|
#3
|
|||
|
|||
|
It is not yet online, but here is my code in the print.css
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: #page { width:100%; background:#FFFFFF; border-top: 0; margin: 0; padding: 0; } But it is not working... I still have the default margin. It doesn't change the left and right margin. |
|
#4
|
||||
|
||||
|
You probably want to set your margins for body {} to 0 too in our print css, could also try html
![]()
__________________
Cheers, Jamie # mdb4u | mobile movie database | Please help to test and promote # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. ![]() __________________ |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > CSS Print |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|