the only way i found that works everywhere was to essentially rotate the
entire print by 90degrees. on the screen i show it normal, but on the way
to the print, i rotate it as in:
@media print {
div#page { position: relative; height: 900px; width: 710px; margin:
auto; padding: 0px; font: 9pt/1.0 'Times New Roman', serif; border: 0px
solid black; background-color: black; }
div.rt { position: relative; float: none; left: 352px; width: 444px;
height: 684px; margin: -222px; padding: 2px; border: 1px solid #555;
-webkit-transform: rotate(90deg); -moz-transform: rotate(90deg);
-ms-transform: rotate(90deg); -o-transform: rotate(90deg);
filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3); }
div.top1 { top: 95px; }
div.top2 { top: 76px; }
}
@media screen {
div#page { position: relative; height: 690px; width: 901px; margin:
auto; padding: 1px; font: 9pt/1.0 'Times New Roman', serif; border: 1px
solid #eee; background-color: black; }
div.rt { position: relative; width: 444px; height: 684px; margin: 0px;
padding: 2px; border: 1px solid #555; background-color: white; }
div.top1 { float: left; }
div.top2 { float: right; }
}
where div.rt is the rotated page when it is sent to the printer but not to
the screen and div.top1 and div.top2 are two divs embedded within div.rt.
very tedious to get right, but i got it to work.
lucas
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.