Sent by Rijk van Geijtenbeek on 20 March 2002 06:06
On Wednesday, March 20, 2002, Chris wrote:
> Dear All,
> I have a page with one table inside one DIV and a print button.
> What I want to occur when the print button is pressed is for the alternate
> print stylesheet to format the page as landscape.
> I understand that the code for setting the stylesheet as landscape is
> size: landscape;
Which browsers do support this? I know Opera does, but I don't want to
waste paper by testing all my browsers ;).
> All I was wondering was whereabouts should this code be placed in the
> alternate stylesheet?
> Or does anyone know the whereabouts of a working copy of this problem?
Applying an alternate stylesheet on certain actions would require
JavaScript - and it wouldn't work in Opera.
Why not just add this to your stylesheet?
@page {
size: landscape;
}
Greetings,
Rijk [EMAIL-REMOVED]
(Opera Software employee)
Mot du Jour:
Black Holes are Out of Sight