Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Using @page in CSS

    I can't find an example of how the @page rule is used. My needs are simple. I just want my pages, when printed, to have a font size of 18pt and a margin of 2 inches.

    In the HTML I included this:
    <link rel="stylesheet" type="text/css" href="stylesheet_print.css" media="print">

    In stylesheet_print.css I included this:
    body {
    font-size: 18pt;
    }

    @page {
    size: 8.5in 11in;
    margin: 2in;
    }

    I get a printout that has 18pt text, but the margin is just the default margin for the browser. The results are the same in IE6 and Moz1.5.

    Thanks!

    Mike Wilkinson
    Last edited by mwaw; 02-04-2004 at 07:33 PM.

  • #2
    New to the CF scene
    Join Date
    Feb 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks to help from a wise person on another forum, I am now able to answer my own question. Basically, IE and Moz do not support the @page rule. Darn!

    Here's a link that shows only Opera supporting @page:

    Browser Support

    Good luck!

    Mike Wilkinson


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •