MrsKensington
Programmer
I've created a link that uses the window.print() javascript call to bring up the print dialog.
By default the page is printed in Portrait, but I want to print it in Landscape.
I was looking at the @page rule thing which you should be able to specify size, margin and page breaks... this is what I have in my stylePrint.css
and then stick this in my web page
the href is right as other bits in the stylesheet work. Yet when i click my print button Portrait is still selected and so when i print its printed in portrait.
What am i doing wrong?
thanks in advance
p.s. I shouldn't think it would make any difference but these pages are created by a perl script
By default the page is printed in Portrait, but I want to print it in Landscape.
I was looking at the @page rule thing which you should be able to specify size, margin and page breaks... this is what I have in my stylePrint.css
Code:
<style TYPE="text/css"><!--BODY { background: #ADD8E6; }
@page { size: landscape; margin: 2cm }
[...]
--></style>
Code:
<link rel="stylesheet" type="text/css" href="../../Time_Keeping/stylePrint.css">
What am i doing wrong?
thanks in advance
p.s. I shouldn't think it would make any difference but these pages are created by a perl script