This CSS is meant to limit the printing of an html page (that may be longer 
than an A3 or A4 paper page), to printing just one page of the contents. But it 
doesn't work. 

The problem may be my use of cm as the height unit. 42cm is the height of an A3 
sheet of paper, 29.7cm for A4. Any suggestions.

<html>
<head>
<title>overflow_print_test.htm</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="BBEdit 7.1.4"> 
 
<style type="text/css">

@media print {
  body {
    height:100px;
    width:100px;
    overflow:hidden;
  }
}

@media print {
  body.A3 {
     height:42cm;
     overflow:hidden;
  }
  body.A4 {
     height:29.7cm;
     overflow:hidden;
  }
}

</script>

</head>

<body id="A4">
....etc...
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to