Loading ...
Sorry, an error occurred while loading the content.

4365CSS @page

Expand Messages
  • wilkinsonm
    Feb 4, 2004
    • 0 Attachment
      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
    • Show all 3 messages in this topic